.community-scopes{display:flex;gap:25px;width:100%;border-bottom:1px solid var(--line)}.community-scopes .tab{border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);padding:0 0 13px;font-size:14px;font-weight:600}.community-scopes .tab.active{color:var(--orange);border-bottom-color:var(--orange)}.author-social-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.author-social-actions button{border:1px solid var(--line);border-radius:20px;padding:9px 18px;background:transparent;color:var(--ink);font-size:12px}.author-social-actions .author-follow{background:var(--orange);border-color:var(--orange);color:white}.author-follow[aria-pressed=true]{background:transparent;color:var(--orange)}#messagesPanel{max-width:1100px;margin:auto}#messagesPanel>h1{font-size:32px;margin:12px 0 28px}.messages-layout{display:grid;grid-template-columns:290px minmax(0,1fr);border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden;min-height:570px}.chat-sidebar{border-right:1px solid var(--line);padding:22px 0}.chat-sidebar h2{font-size:15px;margin:0 20px 20px}.chat-status,.message-status{font-size:12px;line-height:1.7;color:var(--muted);margin:10px 20px}.chat-status:empty,.message-status:empty{display:none}.chat-list{max-height:550px;overflow:auto}.chat-item{display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:17px 18px;border:0;border-left:2px solid transparent;background:none;color:var(--ink)}.chat-item.active{border-left-color:var(--orange);background:color-mix(in srgb,var(--orange) 8%,transparent)}.chat-item:hover{background:var(--raised)}.chat-item-text{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.chat-item-text strong{font-size:13px}.chat-item-text>span{font-size:11px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-unread{background:var(--orange);color:white;font-size:10px;padding:3px 6px;border-radius:20px}.chat-list-empty{font-size:12px;line-height:1.8;color:var(--muted);margin:20px}.chat-more,.message-older{display:block;border:0;background:none;color:var(--muted);padding:12px 20px;font-size:12px}.chat-main{min-width:0}.chat-empty{display:flex;min-height:570px;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;padding:30px}.chat-empty h2{font-size:22px;margin:0}.chat-empty p{font-size:13px;color:var(--muted);line-height:1.8}.chat-conversation{display:flex;flex-direction:column;min-height:570px}.chat-heading{padding:18px 22px;border-bottom:1px solid var(--line)}.chat-peer{display:flex;align-items:center;gap:12px;background:none;border:0;color:var(--ink);padding:0}.chat-peer strong{font-size:14px}.message-log{height:350px;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}.message-bubble{align-self:flex-start;max-width:85%;padding:12px 15px;border:1px solid var(--line);border-radius:14px 14px 14px 3px;background:var(--raised);color:var(--ink)}.message-bubble.own{align-self:flex-end;background:var(--orange);color:white;border-color:var(--orange);border-radius:14px 14px 3px 14px}.message-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;margin:0 0 7px}.message-bubble time{font-size:9px;opacity:.7;display:block}.message-start{font-size:12px;color:var(--muted);text-align:center;margin:auto}.message-form{border-top:1px solid var(--line);padding:16px 20px;margin-top:auto}.message-form label{font-size:11px;color:var(--muted);display:block;margin-bottom:8px}.message-form textarea{width:100%;font-size:13px;line-height:1.7;resize:vertical;min-height:70px;max-height:180px}.message-form>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.message-form>div>span{color:var(--muted);font-size:9px}.message-form .primary{font-size:12px;padding:10px 16px}@media(max-width:730px){.messages-layout{grid-template-columns:1fr}.chat-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:16px 0}.chat-sidebar h2{margin-bottom:10px}.chat-list{max-height:180px}.chat-item{padding:12px 18px}.chat-empty{min-height:300px}.chat-conversation{min-height:480px}.message-log{height:330px;padding:18px}.message-form>div>span{display:none}.message-form>div{justify-content:flex-end}.message-bubble{max-width:92%}}@media(max-width:380px){.header-actions{gap:6px}.header-actions .notification-button{width:30px;height:30px}.author-avatars{gap:4px}.author-avatars a{width:25px;height:25px}}

.profile-connections{display:flex;gap:22px;flex-wrap:wrap;margin:0 0 18px}.profile-connection{border:0;background:none;padding:0;color:var(--muted);font-size:12px;line-height:1.8}.profile-connection strong{color:var(--ink);font-weight:600;transition:color .25s}.profile-connection:hover strong{color:var(--orange)}.profile-connection:focus-visible{outline:2px solid var(--orange);outline-offset:5px;border-radius:2px}.people-dialog{width:min(440px,calc(100vw - 32px))}.people-owner,.people-status{color:var(--muted);font-size:12px;line-height:1.7}.people-status:empty{display:none}.people-list{display:flex;flex-direction:column;max-height:52vh;overflow:auto;margin-top:18px}.people-person{display:flex;align-items:center;gap:13px;width:100%;padding:15px 0;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink)}.people-person strong{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}.people-arrow{font-size:16px;color:var(--muted)}.people-more,.people-retry{border:0;background:none;color:var(--muted);font-size:12px;padding:15px 0 0}.people-retry{color:var(--orange)}
/* Chat previews do not mark messages as read; only opening the actual conversation does. */
.messages-popover{position:fixed;z-index:185;display:flex;flex-direction:column;overflow:hidden;outline:none;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:0 12px 35px #0004}
.messages-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 18px 12px}
.messages-preview-heading h2{font-size:17px;letter-spacing:-.3px;margin:0}
.messages-preview-close{border:0;background:none;color:var(--muted);font-size:24px;line-height:1;padding:2px 4px}
.messages-preview-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;max-height:420px}
.messages-preview-list .chat-item{width:100%;border:0;border-radius:0;min-height:70px;padding:13px 18px;background:transparent;color:var(--ink)}
.messages-preview-list .chat-item:hover{background:var(--raised)}
.messages-preview-empty,.messages-preview-status{font-size:12px;line-height:1.8;color:var(--muted);padding:0 18px;margin:8px 0 18px}
.messages-preview-status:empty{display:none}
.messages-preview-login{border:0;background:var(--raised);border-radius:9px;color:var(--ink);font-size:12px;padding:9px 15px;margin:0 18px 18px}
.messages-view-all{display:flex;justify-content:space-between;gap:15px;flex-shrink:0;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);padding:15px 18px;font-size:12px;text-align:left}
.messages-view-all span{color:var(--orange)}
@media(prefers-reduced-motion:no-preference){.messages-popover{animation:notification-in .15s ease-out}}
