.bs-social{--bs-tint:color-mix(in srgb,var(--premium-gold) 12%,var(--premium-surface));--bs-strong:#7b582f;--bs-unread:#a53b47;color:var(--premium-text);max-width:1400px;margin:0 auto;min-width:0}
html[data-theme="dark"] .bs-social{--bs-strong:#efcca1;--bs-unread:#c45461}
.bs-page-head{margin:0 0 24px}.bs-page-head h1{font-size:24px;line-height:1.4;margin:0 0 8px}.bs-page-head p{margin:0;color:var(--premium-muted);font-size:14px}
.bs-social h2{font-size:17px;margin:0 0 16px;line-height:1.5}.bs-social h3{font-size:15px;margin:0 0 12px}.bs-muted{font-size:12px;color:var(--premium-muted);line-height:1.65}
.bs-social .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.bs-social input:not([type=checkbox]):not([type=range]),.bs-social textarea{width:100%;min-width:0;box-sizing:border-box;font:inherit;font-size:14px;color:var(--premium-text);background:var(--premium-surface);border:1px solid var(--premium-line);border-radius:8px;padding:12px;line-height:1.6}
.bs-social textarea{resize:vertical}.bs-social label:not(.bs-search):not(.bs-check){display:block;font-size:13px;font-weight:600;margin:12px 0 8px}
.bs-social button{cursor:pointer}.bs-social button:disabled{opacity:.5;cursor:default}.bs-social button:focus-visible,.bs-social input:focus-visible,.bs-social textarea:focus-visible,#profileQuickBtn:focus-visible,#chatQuickBtn:focus-visible{outline:2px solid var(--premium-gold);outline-offset:3px}
.bs-card{background:var(--premium-surface);border:1px solid var(--premium-line);border-radius:12px;padding:24px;min-width:0}
.bs-profile-grid{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:24px}.bs-profile-details{display:grid;gap:24px;align-content:start}
.bs-profile-card{display:flex;flex-direction:column;align-items:center;text-align:center;align-self:start;gap:8px}.bs-profile-card h2{align-self:flex-start}.bs-profile-card>b{font-size:18px;margin-top:8px}
.bs-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--bs-tint,#eee5d8);color:var(--bs-strong,#7b582f);font-weight:700;font-size:18px;flex:0 0 auto;overflow:hidden;border:1px solid var(--premium-line);vertical-align:middle}
.bs-avatar.large{width:120px;height:120px;font-size:40px}.bs-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.bs-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}.bs-actions>.bs-muted{margin-right:auto}.bs-profile-card .bs-actions{justify-content:center}
.bs-inline-note{background:var(--bs-tint);padding:12px;border-radius:8px;font-size:13px;line-height:1.65;margin:12px 0}
.bs-crop-editor{width:100%;margin-top:16px;padding-top:16px;border-top:1px solid var(--premium-line);text-align:left}.bs-crop-editor canvas{display:block;width:100%;height:auto;border-radius:50%;border:1px solid var(--premium-line)}.bs-crop-editor input{width:100%;accent-color:var(--premium-gold)}#bsCropError{font-size:13px;color:var(--bs-unread);line-height:1.6}
.bs-chat{display:grid;grid-template-columns:320px minmax(0,1fr);height:min(740px,calc(100dvh - 220px));min-height:420px;border:1px solid var(--premium-line);border-radius:12px;overflow:hidden;background:var(--premium-surface)}
.bs-contact-pane{min-width:0;min-height:0;border-right:1px solid var(--premium-line);display:flex;flex-direction:column}.bs-contact-head{padding:20px 16px 16px;border-bottom:1px solid var(--premium-line)}.bs-contact-head h2{margin-bottom:12px}.bs-contacts{flex:1;overflow:auto;min-height:0}
.bs-contact{width:100%;display:flex;align-items:center;gap:12px;padding:16px;text-align:left;background:transparent;color:var(--premium-text);border:0;border-bottom:1px solid var(--premium-line);font:inherit;min-width:0}.bs-contact:hover,.bs-contact.selected{background:var(--bs-tint)}
.bs-contact-copy{display:flex;flex-direction:column;min-width:0;flex:1;gap:6px}.bs-contact-title{display:flex;justify-content:space-between;align-items:center;gap:4px}.bs-contact-title b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bs-contact-title time{font-size:10px;color:var(--premium-muted);white-space:nowrap}.bs-contact-snippet{font-size:12px;color:var(--premium-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bs-unread,.bs-nav-unread{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:20px;color:#fff;background:var(--bs-unread,#a53b47);font-size:11px;font-weight:700;flex:0 0 auto}
.bs-nav-unread{margin-left:auto;vertical-align:middle}.bs-nav-unread[hidden],.bs-unread[hidden]{display:none!important}
.bs-conversation{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.bs-conversation-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;padding:24px;text-align:center}.bs-conversation-empty>span{width:48px;height:48px;color:var(--premium-gold)}.bs-conversation-empty svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.5}.bs-conversation-empty h2{margin:0}.bs-conversation-empty p{color:var(--premium-muted);font-size:14px;margin:0 0 12px}
.bs-room-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--premium-line);flex:0 0 auto}.bs-room-head>div{min-width:0}.bs-room-head h2{font-size:15px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bs-update-note{font-size:11px;color:var(--premium-muted);margin-left:auto}.bs-chat-back{display:none!important}
.bs-history-action{display:flex;justify-content:center;min-height:8px;padding:4px}.bs-messages{padding:16px 24px;overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain;scroll-behavior:auto}
.bs-message{display:flex;gap:8px;align-items:flex-end;margin-bottom:16px;min-width:0}.bs-message>.bs-avatar{width:28px;height:28px;font-size:12px;margin-bottom:20px}.bs-message>div{max-width:78%;min-width:0}.bs-message.mine{justify-content:flex-end}.bs-bubble{padding:12px 16px;background:var(--premium-bg);border:1px solid var(--premium-line);border-radius:12px 12px 12px 4px;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.bs-message.mine .bs-bubble{background:var(--bs-tint);border-radius:12px 12px 4px 12px}
.bs-message-meta{display:flex;align-items:center;gap:6px;margin-top:4px;color:var(--premium-muted);font-size:10px;flex-wrap:wrap}.bs-message.mine .bs-message-meta{justify-content:flex-end}.bs-retry{border:0;background:none;color:var(--bs-unread);font-size:11px;text-decoration:underline;padding:4px}
.bs-composer{border-top:1px solid var(--premium-line);padding:16px 20px;flex:0 0 auto}.bs-composer textarea{border:0!important;background:var(--premium-bg)!important;max-height:140px;min-height:68px}.bs-composer-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.bs-composer-foot>span{font-size:11px;color:var(--premium-muted)}.bs-jump{position:absolute;right:24px;bottom:170px;padding:8px 12px;border:1px solid var(--premium-line);border-radius:20px;background:var(--premium-surface);color:var(--premium-text);font-size:12px;box-shadow:var(--premium-shadow)}.bs-jump[hidden]{display:none}
.bs-empty{padding:32px 20px;text-align:center;font-size:13px;color:var(--premium-muted);line-height:1.7}.bs-empty .btn{display:block;margin:16px auto 0}
.bs-skeleton{height:100px;border-radius:8px;background:var(--premium-bg);margin:16px;opacity:.7}
#chatQuickBtn{position:relative}#chatQuickBtn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}
.profile-chip.bs-profile-shortcut{font:inherit;cursor:pointer;display:flex!important}.profile-chip.bs-profile-shortcut .bs-avatar{display:inline-flex!important;width:34px;height:34px;font-size:14px;margin:0;color:var(--bs-strong,#7b582f)}.profile-chip.bs-profile-shortcut .bs-avatar>span{color:inherit!important;font-size:14px!important;margin:0!important}
.bs-profile-shortcut .bs-profile-label{text-align:left}.bs-profile-shortcut .bs-profile-label span{margin-top:2px}
@media(max-width:1100px){.bs-chat{grid-template-columns:280px minmax(0,1fr)}.bs-profile-grid{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:900px){.profile-chip.bs-profile-shortcut{min-width:0;padding:4px;border:0;background:none}.bs-profile-shortcut .bs-profile-label{display:none}.top-title-wrap{min-width:0}.top-title-wrap h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:760px){.bs-profile-grid{grid-template-columns:1fr;gap:16px}.bs-profile-details{gap:16px}.bs-card{padding:20px}.bs-chat{grid-template-columns:1fr;height:calc(100dvh - 230px);min-height:400px}.bs-chat .bs-conversation{display:none}.bs-chat.has-room .bs-contact-pane{display:none}.bs-chat.has-room .bs-conversation{display:flex}.bs-contact-pane{border-right:0}.bs-chat-back{display:inline-block!important;padding:8px!important;min-width:48px}.bs-room-head{padding:12px;gap:8px}.bs-room-head>.bs-avatar{width:36px;height:36px}.bs-update-note{display:none}.bs-messages{padding:16px 12px}.bs-message>div{max-width:88%}.bs-composer{padding:12px}.bs-composer-foot>span{font-size:10px}.bs-page-head{margin-bottom:16px}.bs-page-head h1{font-size:22px}}
@media(prefers-reduced-motion:reduce){.bs-social *{scroll-behavior:auto!important;transition:none!important}}
