/* White conversation surface. Loaded after the shared white application system. */
body.social-mode {
  --social-ink: #202124;
  --social-muted: #666970;
  --social-green: #242628;
  --social-rail: #ffffff;
  --social-canvas: #ffffff;
  --social-line: #eceef0;
}
.social-app {
  grid-template-columns: 76px 288px minmax(0, 1fr);
  min-height: 0;
  height: 100dvh;
  background: #fff;
  color: #202124;
  font-size: 14px;
}
.social-app button,
.social-app input,
.social-app select,
.social-app textarea { -webkit-tap-highlight-color: transparent; }
.social-app :focus-visible { outline: 2px solid #565a61; outline-offset: 3px; }
.social-app ::selection { color: #202124; background: #dce0e6; }
.social-app input,
.social-app textarea { caret-color: #202124; }
.social-room-list,
.social-contact-scroll,
.social-message-scroll,
.social-modal,
.social-details { scrollbar-width: thin; scrollbar-color: #d6d8dc transparent; overscroll-behavior: contain; }
.social-rail {
  gap: 9px;
  padding: 21px 9px 16px;
  color: #565a61;
  border-right: 1px solid #eceef0;
  background: #fff;
}
.social-brand { gap: 3px; margin-bottom: 23px; color: #36393e; }
.social-brand img { width: 42px; height: 42px; object-fit: contain; }
.social-brand small { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.social-rail-button {
  width: 56px;
  min-height: 56px;
  gap: 5px;
  border-radius: 18px;
  color: #666970;
  transition: color 160ms ease, background-color 160ms ease;
}
.social-rail-button span { font-size: 12px; }
.social-rail-button:hover { color: #202124; background: #f6f7f8; }
.social-rail-button.active { color: #202124; background: #f0f1f3; }
.social-rail-button.active span { font-weight: 600; }
.social-rail-badge { background: #b84242; }
.social-me { width: 36px; height: 36px; border-color: #eceef0; color: #45484e; background: #f6f7f8; }
.social-sidebar { border-color: #eceef0; background: #fff; }
.social-list-head { height: 78px; padding: 0 22px; }
.social-list-head h2 { font-size: 19px; font-weight: 600; }
.social-icon-button { width: 38px; height: 38px; border-radius: 14px; color: #666970; }
.social-icon-button:hover { color: #202124; background: #f6f7f8; }
.social-search { margin: 0 16px 17px; padding: 11px 13px; gap: 8px; border-radius: 16px; background: #f6f7f8; }
.social-search:focus-within { border-color: #bfc3c9; background: #fff; }
.social-search input { font-size: 13px; }
.social-search input::placeholder { color: #6b6f77; }
.social-room-list { padding: 0 10px 16px; }
.social-room { min-height: 74px; gap: 11px; padding: 12px; margin-bottom: 3px; border-radius: 18px; }
.social-room.active { background: #f0f1f3; }
.social-room-title strong { font-size: 13px; font-weight: 550; }
.social-room-title time { font-size: 12px; color: #6b6f77; }
.social-room-preview { font-size: 12px; margin-top: 6px; }
.social-avatar,
.social-avatar.ai { width: 40px; height: 40px; border-radius: 15px; color: #4d5158; background: #f0f1f3; font-weight: 550; }
.social-avatar.small { width: 32px; height: 32px; }
.social-room.active .social-avatar { background: #fff; }
.social-avatar svg { stroke-width: 1.6; }
.social-unread { background: #32353b; }
.social-main,
.social-chat { background: #fff; }
.social-chat-head { border-color: #eceef0; }
.social-chat-head h1 { font-size: 15px; font-weight: 600; }
.social-chat-head p { font-size: 12px; color: #666970; }
.social-chat-actions { gap: 9px; }
.social-message-scroll { scrollbar-gutter: stable; }
.social-message-list { width: min(100%, 860px); padding: 28px 34px 28px; }
.social-message { gap: 12px; margin-bottom: 27px; }
.social-message-main { max-width: min(83%, 710px); }
.social-message-author { margin-bottom: 9px; }
.social-message-author strong { color: #34373c; font-size: 12px; font-weight: 600; }
.social-message-author span { border-radius: 6px; padding: 2px 5px; color: #666970; background: #f0f1f3; font-size: 12px; }
.social-bubble { padding: 12px 16px; border: 1px solid #e7edf2; border-radius: 6px 18px 18px 18px; color: #1a222b; background: #f8fafb; font-size: 14.5px; line-height: 1.8; }
.social-message.mine .social-bubble { padding: 11px 17px; border: 1px solid #d5e6eb; border-radius: 18px 18px 6px 18px; color: #12212a; background: #ebf4f6; }
.social-message-meta { margin: 9px 2px 0; gap: 9px; }
.social-run { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; max-width: 100%; padding: 4px 8px; border-radius: 8px; color: #5f636b; background: #f6f7f8; font-size: 12px; }
.social-run-detail { flex-basis: 100%; font-size: .95em; line-height: 1.45; overflow-wrap: anywhere; }
.social-run.running,
.social-run.queued { color: #4c5159; background: #f0f1f3; }
.social-run.failed,
.social-run.unknown { color: #8b4135; background: #fdf2ef; }
.social-run.blocked { color: #6a5b37; background: #f8f3e9; }
.social-no-messages { font-size: 13px; }
.social-composer-area { position: relative; width: min(100%, 870px); padding: 0 38px 21px; background: #fff; }
.social-composer { gap: 12px; padding: 16px 16px 16px 21px; border-color: #e2e4e8; border-radius: 25px; background: #fff; box-shadow: 0 8px 24px rgba(22, 27, 34, .045); }
.social-composer:focus-within { border-color: #9ba1a9; box-shadow: 0 8px 26px rgba(22, 27, 34, .065); }
.social-composer textarea { min-height: 52px; font-size: 14px; line-height: 1.7; }
.social-composer textarea::placeholder { color: #6b6f77; }
.social-send:hover { background: #45494f; }
.social-send:active { transform: scale(.95); }
.social-latest { position: absolute; z-index: 4; bottom: calc(100% + 12px); left: 50%; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 13px; transform: translateX(-50%); border-radius: 17px; color: #45494f; background: #fff; font-size: 12px; }
.social-latest[hidden] { display: none; }
.social-latest svg { transform: rotate(90deg); }
.social-latest:hover { background: #f6f7f8; }
.social-empty-chat { background: #fff; }
.social-empty-symbol { width: 88px; height: 88px; margin-bottom: 22px; border-radius: 0; background: transparent; }
.social-empty-symbol img { object-fit: contain; }
.social-empty-chat h1 { max-width: 520px; margin-bottom: 14px; }
.social-empty-chat p { max-width: 450px; }
.social-app .button { min-height: 40px; padding: 9px 16px; border-radius: 16px; font-size: 13px; font-weight: 500; }
.social-app .button.primary { color: #fff; border-color: #282b2f; background: #282b2f; box-shadow: none; }
.social-app .button.primary:hover { border-color: #45494f; background: #45494f; }
.social-app .button.secondary { color: #393d44; border-color: #e0e3e7; background: #fff; box-shadow: none; }
.social-app .button.secondary:hover { border-color: #bfc3c9; background: #f8f9fa; }
.social-app .button.quiet { color: #5f636b; background: transparent; }
.social-app .button.quiet:hover { color: #202124; background: #f6f7f8; }
.social-contact-scroll { padding: 0 20px 24px; }
.social-sidebar-note { margin-bottom: 21px; color: #6b6f77; font-size: 12px; }
.social-ai-card,
.social-contact { padding: 14px; border: 1px solid #e6ebf0; border-radius: 14px; background: #fff; margin-bottom: 8px; }
.social-ai-copy > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #6b6f77; }
.social-ai-copy small { color: #666970; }
.social-request { border-bottom-color: #eceef0; }
.social-text-button { min-height: 32px; color: #4d5158; }
.social-text-button:hover { color: #202124; }
.social-budget-entry { border-color: #eceef0; border-radius: 16px; color: #4d5158; background: #f8f9fa; }
.social-details { width: 318px; border-left-color: #eceef0; padding: 0 22px 24px; background: #fff; box-shadow: -12px 0 36px rgba(22, 27, 34, .055); }
.social-details-head { height: 78px; }
.social-member { border-color: #eceef0; }
.social-member strong { font-size: 12px; }
.social-member small,
.social-member > span { color: #6b6f77; font-size: 12px; }
.social-modal { width: min(100%, 460px); color: #202124; background: #fff; }
.social-modal.wide { width: min(100%, 620px); }
.social-modal > header { margin-bottom: 23px; }
.social-modal > header h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.social-form { gap: 18px; }
.social-form input:not([type=checkbox]):not([type=radio]),
.social-form select,
.social-form textarea { min-height: 44px; padding: 11px 14px; border: 1px solid #e2e4e8; border-radius: 15px; color: #202124; background: #fff; font-size: 13px; }
.social-form input::placeholder,
.social-form textarea::placeholder { color: #6b6f77; }
.social-form .field-label { color: #45494f; font-size: 12px; }
.social-form input[type=checkbox],
.social-form input[type=radio] { accent-color: #45494f; }
.social-form fieldset { gap: 9px; padding: 15px; border-color: #eceef0; border-radius: 18px; }
.social-form legend { color: #666970; font-size: 12px; }
.social-choice { min-height: 38px; }
.social-choice small { color: #6b6f77; font-size: 12px; }
.social-modal-actions { gap: 10px; margin-top: 22px; }
.social-budget-total { color: #34373c; font-size: 13px; }
.social-ai-form-error { margin: 0; color: #8b4135; font-size: 13px; line-height: 1.7; }
.social-cancel-run { border-radius: 12px; color: #45494f; }
.social-cancel-run:hover { background: #f0f1f3; }
.social-run.cancelled { background: #f6f7f8; }
.social-reconciliation-facts dt, .social-reconciliation-history small { color: #666970; }
.social-reconciliation-status { color: #34373c; }
.social-muted { color: #666970; }
@media (max-width: 1100px) {
  .social-app { grid-template-columns: 70px 258px minmax(0, 1fr); }
  .social-chat-head { padding: 0 23px; }
  .social-message-list { padding: 30px 25px 25px; }
  .social-composer-area { padding: 0 25px 18px; }
}
@media (max-width: 700px) {
  .social-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 65px; min-height: 0; }
  .social-rail { grid-row: 2; grid-column: 1; gap: 3px; padding: 5px 8px; border-right: 0; border-top: 1px solid #eceef0; }
  .social-rail-button { width: 58px; min-height: 52px; gap: 3px; border-radius: 17px; }
  .social-sidebar,
  .social-main { grid-row: 1; grid-column: 1; }
  .social-list-head { height: 73px; }
  .social-chat-head { height: 66px; padding: 0 13px; }
  .social-message-list { padding: 25px 17px 20px; }
  .social-message { gap: 9px; margin-bottom: 24px; }
  .social-message-main { max-width: 87%; }
  .social-bubble { font-size: 14px; }
  .social-composer-area { padding: 0 14px 14px; }
  .social-composer { padding: 13px 12px 13px 16px; border-radius: 23px; }
  .social-composer textarea { min-height: 43px; font-size: 14px; }
  .social-empty-chat { padding: 28px 18px; }
  .social-empty-chat h1 { font-size: 23px; }
  .social-empty-actions { flex-wrap: wrap; justify-content: center; }
  .social-modal-backdrop { padding: 12px; }
  .social-modal { max-height: 90dvh; padding: 23px 21px; border-radius: 24px; }
  .social-modal > header h2 { font-size: 19px; }
  .social-modal-actions { flex-wrap: wrap; }
  .social-details { width: min(88vw, 318px); }
}
@media (prefers-reduced-motion: reduce) {
  .social-app *, .social-app *::before, .social-app *::after { scroll-behavior: auto; transition-duration: 0s; }
}

/* One composer: recipients, files and the next action stay in the conversation. */
.social-chat .social-composer-area { width: min(100%, 1050px); margin-inline: auto; padding: 0 34px 16px; }
.social-composer-dock { position: relative; min-width: 0; }
.social-chat .social-composer.social-composer-unified {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 17px 12px;
  border: 1px solid #e3e6ea; border-radius: 26px; background: #fff; box-shadow: none;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}
.social-chat .social-composer-unified:focus-within { border-color: #adb8b2; box-shadow: none; }
.social-chat .social-composer-unified.drag-over { border-color: #1f6e59; background: #f4faf7; }
.social-composer-unified [data-social-composer] {
  width: 100%; min-height: 68px; max-height: 190px; padding: 7px 7px 12px; border: 0;
  color: #242529; background: transparent; font: inherit; font-size: 16px; line-height: 1.7;
  resize: none; outline: none; caret-color: #1f6e59;
}
.social-composer-unified [data-social-composer]::placeholder { color: #5c646a; }
.social-composer-unified [data-social-composer]::selection { color: #173d30; background: #dcefe5; }
.reference-mode .social-chat .social-composer-unified [data-social-composer]:focus,
.reference-mode .social-chat .social-composer-unified [data-social-composer]:focus-visible { outline: none; border: 0; box-shadow: none; }
.reference-mode .social-chat .social-composer-unified:focus-within { border-color: #697e77; }
.social-recipients { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 5px; }
.social-recipients:empty { display: none; }
.social-recipient {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px;
  margin-bottom: 5px; padding: 3px 7px 3px 4px; border-radius: 11px; color: #346352; background: #eef6f1; font-size: 12px;
}
.social-recipient > span:not(.social-avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-recipient .social-avatar.small { width: 23px; height: 23px; border-radius: 8px; font-size: 12px; }
.social-recipient .social-avatar.small svg { width: 14px; height: 14px; }
.social-recipient.unavailable { color: #8b543a; background: #fff0db; }
.social-recipient small { flex: none; font-size: 12px; }
.social-recipient-choice { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 2px 3px; border: 0; border-radius: 5px; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.social-recipient-choice strong, .social-recipient-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-recipient-choice strong { font-weight: 650; }
.social-recipient-choice small { flex: 0 1 auto; max-width: 13ch; }
.social-recipient-choice svg { flex: none; }
.social-recipient-choice:hover { background: #dcece2; }
.social-recipient-remove { display: grid; flex: none; place-items: center; width: 23px; height: 23px; padding: 0; border: 0; border-radius: 7px; color: inherit; background: transparent; cursor: pointer; }
.social-recipient-remove:hover { background: #dcece2; }
.social-composer-toolbar, .social-composer-tools, .social-composer-submit { display: flex; align-items: center; min-width: 0; gap: 5px; }
.social-composer-toolbar { justify-content: space-between; padding-top: 3px; }
.social-composer-tools { flex: none; }
.social-composer-submit { justify-content: flex-end; }
.social-tool-icon, .social-tool-button {
  display: inline-flex; flex: none; justify-content: center; align-items: center; gap: 7px; min-height: 35px; padding: 7px 9px;
  border: 0; border-radius: 11px; color: #666970; background: transparent; font: inherit; font-size: 13px; line-height: 1.3;
  cursor: pointer; transition: background-color 150ms ease-out, color 150ms ease-out;
}
.social-tool-icon { width: 35px; padding: 5px; }
.social-at-button { font-size: 22px; font-weight: 500; }
.social-tool-icon:hover, .social-tool-button:hover { color: #242529; background: #f2f3f5; }
.social-tool-icon:disabled, .social-tool-button:disabled { opacity: .45; cursor: default; }
.social-tool-icon:focus-visible, .social-tool-button:focus-visible, .social-recipient-remove:focus-visible, .social-recipient-choice:focus-visible,
.social-mention-option:focus-visible, .social-model-option:focus-visible, .social-model-agent-tab:focus-visible,
.social-attachment-remove:focus-visible, .social-message-image:focus-visible { outline: 2px solid #697e77; outline-offset: 3px; }
.social-composer-model { flex: 0 1 auto; }
.social-composer-model > span:not(.model-picker-mark) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-composer-model .model-picker-mark, .social-model-menu .model-picker-mark { flex: none; width: 20px; height: 20px; }
.social-model-brand { flex: none; width: 20px; height: 20px; object-fit: contain; }
.social-composer-submit .social-send { flex: none; width: 40px; height: 40px; margin-left: 5px; border-radius: 15px; }
.social-mention-menu, .social-model-menu {
  position: fixed; z-index: 45; inset: auto; margin: 0; display: flex; flex-direction: column;
  width: min(448px, calc(100vw - 24px)); max-height: min(468px, 68dvh);
  overflow: hidden; padding: 10px; border: 1px solid #dfe6ed; border-radius: 18px; color: #171e26; background: #fff;
  box-shadow: 0 10px 42px rgba(22, 27, 34, .14); scrollbar-width: thin; scrollbar-color: #cfd5d2 transparent;
}
.social-picker-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.social-picker-caption small { color: #5c646a; font-size: 12px; font-weight: 400; }
.social-picker-caption .social-icon-button { width: 28px; height: 28px; min-height: 28px; border-radius: 8px; }
.social-mention-menu [role="listbox"] { min-height: 0; overflow-y: auto; }
.social-mention-option, .social-model-option {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 57px; padding: 9px 11px;
  border: 0; border-radius: 11px; color: #242529; background: #fff; font: inherit; text-align: left; cursor: pointer;
}
.social-mention-option > span:not(.social-avatar), .social-model-option > span:not(.model-picker-mark) { flex: 1; min-width: 0; }
.social-mention-option > .social-mention-picked { display: grid; flex: none; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: #225349; background: #e3f1e9; }
.social-mention-option strong, .social-mention-option small, .social-model-option strong, .social-model-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-mention-option strong, .social-model-option strong { font-size: 13px; font-weight: 550; }
.social-mention-option small, .social-model-option small { margin-top: 4px; color: #5c646a; font-size: 12px; }
.social-mention-option.active, .social-mention-option:hover, .social-model-option:hover { background: #f2f3f5; }
.social-model-option:disabled { cursor: default; opacity: .55; }
.social-model-menu .social-model-option[aria-pressed="true"] { border-color: #c4dfd0; background: #edf7f1; }
.social-model-menu .social-model-option > .social-model-option-state { flex: none; max-width: 6ch; color: #355d52; font-size: 12px; white-space: normal; }
.social-model-menu .social-model-option .social-model-option-rate { margin-top: 2px; white-space: normal; overflow-wrap: anywhere; }
.social-picker-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 4px; color: #5c646a; font-size: 12px; }
.social-picker-actions { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.social-model-refresh-status { padding: 8px 10px; }
.social-picker-empty { margin: 0; padding: 16px 12px; color: #666970; font-size: 13px; line-height: 1.7; }
.social-model-agent-tabs { display: flex; flex: none; gap: 5px; overflow-x: auto; margin: 0 6px 4px; padding: 2px; }
.social-model-agent-tab { flex: none; min-height: 30px; padding: 5px 9px; border: 0; border-radius: 9px; color: #666970; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.social-model-agent-tab.selected { color: #242529; background: #f0f1f3; }
.social-model-source-tabs { display: flex; flex-wrap: nowrap; gap: 4px; padding: 4px; margin: 2px 2px 8px; background: #f1f4f7; border-radius: 11px; overflow-x: auto; scrollbar-width: none; flex: none; }
.social-model-source-tab { flex: 1 0 auto; min-height: 30px; min-width: 0; padding: 5px 10px; border: 0; border-radius: 8px; color: #5b6773; background: transparent; font: inherit; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.social-model-source-tab:hover { color: #242529; background: #eceef0; }
.social-model-source-tab.selected { color: #346352; background: #eaf5ef; }
.social-model-source-tab:focus-visible { outline: 2px solid #697e77; outline-offset: 2px; }
.social-model-current { display: flex; align-items: center; gap: 10px; margin: 0 7px 9px; padding: 10px 7px 13px; border-bottom: 1px solid #eceef0; font-size: 12px; }
.social-model-current > span:not(.model-picker-mark) { flex: 1; min-width: 0; }
.social-model-current small { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #666970; font-size: 12px; }
.social-model-menu input { width: calc(100% - 14px); min-height: 37px; margin: 0 7px 6px; padding: 8px 11px; border: 1px solid #e3e6ea; border-radius: 11px; color: #242529; background: #fafbfb; font: inherit; font-size: 13px; }
.social-model-menu input:focus { outline: 2px solid #697e77; outline-offset: 1px; }
.social-model-choices { display: flex; flex-direction: column; min-height: 0; }
.social-model-choices > input, .social-model-choices > .social-picker-foot { flex: none; }
.social-model-options { flex: 0 1 auto; min-height: 0; max-height: 270px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd5df transparent; padding: 2px; }
.social-attachment-section { padding: 5px 5px 9px; }
.social-attachment-list { display: flex; gap: 9px; overflow-x: auto; padding: 3px 3px 6px; }
.social-attachment { position: relative; flex: none; width: 93px; margin: 0; }
.social-attachment > img { display: block; width: 93px; height: 82px; object-fit: cover; border-radius: 12px; background: #f2f3f5; }
.social-attachment figcaption { margin-top: 5px; color: #666970; font-size: 12px; }
.social-attachment-document { width: 152px; }
.social-file-card {
  box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px;
  padding: 8px 10px; border: 1px solid var(--wb-line); border-radius: var(--wb-control-radius);
  background: var(--wb-subtle); color: var(--wb-ink); font-size: 12px;
}
.social-attachment-document .social-file-card { min-height: 82px; flex-wrap: wrap; align-content: center; }
.social-attachment-document .social-file-card strong { flex-basis: 100%; }
.social-file-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.social-file-type {
  flex: none; padding: 3px 5px; border-radius: 4px; background: var(--wb-chrome); color: var(--wb-muted);
  font-size: 12px; font-weight: 650; line-height: 1.1;
}
.social-message-document { max-width: min(100%, 280px); text-decoration: none; }
.social-message-document svg { flex: none; margin-inline-start: auto; }
.social-message-document:hover { border-color: var(--wb-line-strong); color: var(--wb-accent); }
.social-message-document:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
.social-attachment-remove { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 9px; color: #fff; background: #34373c; cursor: pointer; }
.social-attachment-remove:hover { background: #565a61; }
.social-image-handoff { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; color: #666970; font-size: 12px; }
.social-image-handoff .social-tool-button { min-height: 29px; padding: 5px 8px; color: #1f6e59; background: #eef6f1; font-size: 12px; }
.social-message-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.social-message-image { padding: 0; border: 0; border-radius: 13px; overflow: hidden; background: #f2f3f5; cursor: zoom-in; }
.social-message-image img { display: block; width: min(220px, 32vw); height: 170px; object-fit: contain; }
.social-image-preview { display: block; width: 100%; max-height: 68dvh; object-fit: contain; }
@media (max-width: 1100px) {
  .social-chat .social-composer-area { padding: 0 24px 14px; }
  .social-composer-model { max-width: 250px; }
}
@media (max-width: 700px) {
  .social-chat .social-composer-area { padding: 0 12px 10px; }
  .social-chat .social-composer.social-composer-unified { padding: 12px 10px 9px; border-radius: 23px; }
  .social-composer-unified [data-social-composer] { min-height: 58px; font-size: 15px; }
  .social-composer-toolbar { gap: 4px; }
  .social-composer-tools .social-tool-button { width: 34px; padding: 7px; font-size: 0; gap: 0; }
  .social-composer-model { max-width: 155px; padding-inline: 5px; font-size: 12px; }
  .social-composer-submit .social-send { width: 36px; height: 36px; margin-left: 2px; }
  .social-mention-menu, .social-model-menu { max-height: 48dvh; }
}

/* 群成员分组面板、身份与主动/被动监听模式徽标及右键菜单样式 */
.social-details { padding-bottom: 120px; }
.social-details-head-actions { display: inline-flex; align-items: center; gap: 4px; }
.social-member-search { margin: 2px 0 12px; }
.social-member-search input {
  width: 100%; min-height: 36px; padding: 7px 12px; border: 1px solid #e4e7eb; border-radius: 11px;
  color: #202124; background: #f8f9fa; font: inherit; font-size: 12.5px;
}
.social-member-search input:focus { outline: 2px solid #697e77; outline-offset: 1px; background: #fff; }
.social-member-group { margin-bottom: 14px; }
.social-member-group-title { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 6px; color: #4d5158; font-size: 12px; }
.social-member-group-title h4 { margin: 0; font-size: 12.5px; font-weight: 600; color: #202124; }
.social-member-group-title span { color: #6b6f77; font-size: 12px; font-weight: 500; }
.social-member-subhead { margin: 8px 0 4px; color: #6b6f77; font-size: 12px; font-weight: 500; }
.social-member { position: relative; align-items: flex-start; gap: 10px; padding: 10px 4px; }
.social-member.menu-open { z-index: 12; }
.social-member > .social-member-info { flex: 1; min-width: 0; }
.social-member-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.social-member-name-row strong { max-width: 100%; font-size: 12.5px; font-weight: 550; }
.social-role-badge {
  display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 6px;
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.social-role-badge.owner { color: #255b48; background: #e8f3ed; }
.social-role-badge.admin { color: #1d4ed8; background: #eff6ff; }
.social-role-badge.group-assistant { color: #255b48; background: #e8f3ed; }
.social-group-assistant-mention {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid #d5e4dd;
  border-radius: 8px;
  background: #fff;
  color: #255b48;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}
.social-group-assistant-mention:hover,
.social-group-assistant-mention[aria-pressed='true'] { background: #e8f3ed; }
.social-group-assistant-mention:focus-visible { outline: 2px solid #697e77; outline-offset: 2px; }
.social-group-assistant-mention:disabled { opacity: .55; cursor: default; }
.social-role-badge.disabled { color: #8b543a; background: #fff0db; }
.social-listen-badge {
  display: inline-block; margin-top: 4px; font-size: 12px; line-height: 1.4;
}
.social-listen-badge.all { color: #2e6b54; }
.social-listen-badge.passive { color: #8a5a19; font-weight: 550; }
.social-member > .social-member-menu-wrap { position: relative; flex: none; margin-left: auto; }
.social-member-more {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px;
  color: #6b6f77; background: transparent; font-size: 15px; line-height: 1; cursor: pointer;
}
.social-member-more:hover, .social-member.menu-open .social-member-more { color: #202124; background: #f0f2f5; }
.social-member-menu {
  position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; min-width: 156px; padding: 6px;
  border: 1px solid #eceef0; border-radius: 13px; background: #fff; box-shadow: 0 12px 34px rgba(22, 27, 34, .14);
}
.social-member-menu-item {
  display: flex; align-items: center; width: 100%; min-height: 36px; padding: 7px 11px; border: 0; border-radius: 9px;
  color: #202124; background: transparent; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; white-space: nowrap;
}
.social-member-menu-item:hover { background: #f3f4f6; }
.social-member-menu-item.danger { color: #dc2626; margin-top: 2px; border-top: 1px solid #f2f3f5; padding-top: 9px; border-radius: 0 0 9px 9px; }
.social-member-menu-item.danger:hover { background: #fef2f2; }
.social-details-foot { margin-top: 10px; font-size: 12px; line-height: 1.65; }
.social-recipient-skip-all {
  min-height: 30px; margin-bottom: 5px; padding: 4px 10px; border: 1px solid #d5e5dc; border-radius: 10px;
  color: #2a5b48; background: #fff; font: inherit; font-size: 12px; cursor: pointer;
}
.social-recipient-skip-all:hover { background: #f2f8f5; }
/* ---------- 多模型群聊 2.0：左栏快捷建智能体 / 群上下文折叠侧栏 / 多 Tab 头部 / 第一层级收听直切 ---------- */
.social-list-head-tools { display: inline-flex; align-items: center; gap: 4px; }
.social-sidebar-quick {
  display: flex; align-items: center; gap: 8px; flex: none;
  margin: 0 14px 12px;
}
.social-sidebar-create-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; min-width: 0; height: 38px;
  padding: 0 14px; border: 0; border-radius: 12px; color: #fff; background: #1e2126;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(18, 22, 28, .12);
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.social-sidebar-create-btn:hover { background: #31353d; box-shadow: 0 4px 12px rgba(18, 22, 28, .16); }
.social-sidebar-create-btn:active { transform: scale(.98); }
.social-sidebar-plus-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px;
  border: 1px solid #e2e5ea; border-radius: 12px; color: #363940; background: #fff;
  cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease;
}
.social-sidebar-plus-btn:hover { background: #f4f6f8; border-color: #cfd5dd; }

.social-avatar.group {
  border-radius: 13px; color: #2b4a5e; background: linear-gradient(145deg, #eef4f7, #e3edf3);
  border: 1px solid rgba(43, 74, 94, .1); font-size: 12px; font-weight: 700; letter-spacing: -.02em;
}
.social-avatar.social-tone-sage { color: #195641; background: linear-gradient(145deg, #e7f6ef, #d6ede2); border: 1px solid rgba(25, 86, 65, .1); }
.social-avatar.social-tone-amber { color: #8c4b11; background: linear-gradient(145deg, #fff3e2, #fde5c4); border: 1px solid rgba(140, 75, 17, .12); }
.social-avatar.social-tone-blue { color: #1b4f8c; background: linear-gradient(145deg, #eaf2ff, #d9e7ff); border: 1px solid rgba(27, 79, 140, .1); }
.social-avatar.social-tone-rose { color: #8e2f4b; background: linear-gradient(145deg, #ffedf2, #fbdce5); border: 1px solid rgba(142, 47, 75, .1); }
.social-avatar.social-tone-slate { color: #2d3643; background: linear-gradient(145deg, #eef1f5, #e2e6ec); border: 1px solid rgba(45, 54, 67, .1); }

/* 群聊主域骨架：左中折叠群子栏 + 中间多页签工作区 + 右侧随行或抽屉群成员栏 */
.social-chat { display: flex; flex: 1; flex-direction: row; min-width: 0; min-height: 0; }
.social-chat-center { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.social-chat-stage { flex: 1; display: flex; min-width: 0; min-height: 0; position: relative; overflow: hidden; }
.social-chat-body { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.social-group-pane {
  flex: none; width: 194px; display: flex; flex-direction: column; min-height: 0; overflow-y: auto;
  border-right: 1px solid #eceef0; background: #fbfcfd; scrollbar-width: thin; scrollbar-color: #d6d8dc transparent;
}
.social-group-pane-head {
  display: flex; align-items: center; gap: 8px; flex: none; height: 58px; padding: 0 12px;
  border-bottom: 1px solid #eceef0;
}
.social-group-pane-head .social-avatar.small { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; }
.social-group-pane-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 650; color: #1c1f24; }
.social-pane-toggle, .social-pane-reopen {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px;
  padding: 0; border: 1px solid #e4e7ec; border-radius: 8px; color: #666970; background: #fff;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color 140ms ease, color 140ms ease;
}
.social-pane-toggle:hover, .social-pane-reopen:hover { color: #1f2228; background: #f2f4f7; }
.social-group-pane-section { padding: 14px 12px 6px; }
.social-group-pane-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #5b616a; font-size: 12px; font-weight: 600; }
.social-group-pane-title b { color: #7a818b; font-weight: 500; font-variant-numeric: tabular-nums; }
.social-group-pane-empty { margin: 2px 0 8px; color: #8c929c; font-size: 12px; line-height: 1.55; }
.social-topic-chip {
  display: flex; align-items: flex-start; gap: 7px; width: 100%; padding: 8px 9px; border: 1px solid #e9edf1;
  border-radius: 11px; color: #363c44; background: #fff; font: inherit; font-size: 12px; line-height: 1.45;
  text-align: left; cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease;
}
.social-topic-chip:hover { border-color: #c7d6ce; background: #f5faf7; }
.social-topic-dot { flex: none; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #26785f; }
.social-topic-chip > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.social-pane-agents { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; }
.social-pane-agent {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 1px solid transparent;
  border-radius: 11px; color: #22262c; background: transparent; font: inherit; text-align: left; cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.social-pane-agent:hover:not(:disabled):not(.read-only) { background: #f1f4f7; }
.social-pane-agent.read-only { cursor: default; }
.social-pane-agent.mentioned { border-color: #9dcab8; background: #edf7f2; }
.social-pane-agent:disabled { opacity: .48; cursor: default; }
.social-pane-agent .social-avatar.small { width: 26px; height: 26px; border-radius: 50%; font-size: 12px; }
.social-pane-agent-copy { flex: 1; min-width: 0; }
.social-pane-agent-copy strong, .social-pane-agent-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-pane-agent-copy strong { font-size: 12px; font-weight: 550; }
.social-pane-agent-copy small { font-size: 12px; color: #717882; margin-top: 1px; }
.social-pane-agent time { flex: none; font-size: 12px; color: #8c929c; font-variant-numeric: tabular-nums; }

/* 顶栏多 Tab 页签 + 成员计数 / 应用弹窗按钮 */
.social-chat-tabs { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.social-chat-tab, .social-chat-tab-group {
  display: inline-flex; align-items: center; flex: none; height: 34px; border-radius: 10px;
  color: #5f6570; background: transparent; font: inherit; font-size: 13px; font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.social-chat-tab { gap: 6px; padding: 0 11px; border: 0; cursor: pointer; max-width: 210px; }
.social-chat-tab > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-chat-tab:hover, .social-chat-tab-group:hover { color: #1b1e23; background: #f3f5f7; }
.social-chat-tab.active, .social-chat-tab-group.active {
  color: #16181c; background: #eef1f4; font-weight: 600;
}
.social-chat-tab-add { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; color: #666c75; background: transparent; cursor: pointer; }
.social-chat-tab-add:hover { color: #16181c; background: #f1f3f5; }

.social-head-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 33px; padding: 0 10px;
  border: 1px solid #e4e7ec; border-radius: 10px; color: #434850; background: #fff;
  font: inherit; font-size: 12.5px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.social-head-pill:hover { background: #f5f7f9; border-color: #d2d7df; color: #171a1f; }
.social-head-pill.active { background: #edf5f1; border-color: #b7d8c9; color: #1b5c45; }

.social-apps-wrap { position: relative; flex: none; }
.social-apps-popover {
  position: absolute; z-index: 42; top: calc(100% + 8px); right: 0; width: 296px; padding: 8px;
  border: 1px solid #e2e7ee; border-radius: 16px; color: #1b2028; background: #fff;
  box-shadow: 0 16px 46px rgba(18, 24, 32, .14);
}
.social-apps-head { padding: 7px 10px 9px; border-bottom: 1px solid #f0f2f5; margin-bottom: 5px; }
.social-apps-head strong { display: block; font-size: 13px; font-weight: 650; }
.social-apps-head small { display: block; margin-top: 2px; font-size: 12px; color: #6c727d; }
.social-apps-item {
  display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; color: inherit; background: transparent;
  font: inherit; text-align: left; cursor: pointer; transition: background-color 130ms ease;
}
.social-apps-item:hover { background: #f4f6f9; }
.social-apps-item strong { display: block; font-size: 12.5px; font-weight: 600; color: #1e2228; }
.social-apps-item small { display: block; margin-top: 2px; font-size: 12px; color: #6b727d; line-height: 1.45; }

/* 第一层级「收听全部消息 / 仅 @ 点名」开关药丸 */
.social-listen-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; padding: 3px 9px;
  border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 550; line-height: 1.45;
  cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease, transform 100ms ease;
}
.social-listen-toggle.all { color: #1e6249; background: #eaf6f0; border-color: #cfe8db; }
.social-listen-toggle.all:hover:not(:disabled) { background: #ddf0e7; border-color: #a9d5c0; }
.social-listen-toggle.passive { color: #8c5312; background: #fff5e6; border-color: #f3dbb7; }
.social-listen-toggle.passive:hover:not(:disabled) { background: #ffecd1; border-color: #e6c28c; }
.social-listen-toggle:active:not(:disabled) { transform: scale(.97); }
.social-listen-toggle:disabled { opacity: .5; cursor: wait; }
.social-listen-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: currentColor; }


/* 输入框左下角「新智能体」直达按钮 & 弹窗入群横幅 */

/* 顶栏「群信息」Tab 正文详情板 */
.social-group-info { flex: 1; min-height: 0; overflow-y: auto; padding: 26px clamp(18px, 3vw, 36px) 36px; width: min(100%, 960px); margin-inline: auto; }
.social-group-info-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px;
  border: 1px solid #e6ebf0; border-radius: 18px; background: #fbfcfd; margin-bottom: 22px;
}
.social-group-info-copy { flex: 1; min-width: 220px; }
.social-group-info-copy h2 { margin: 0; font-size: 18px; font-weight: 650; color: #191c22; }
.social-group-info-copy p { margin: 5px 0 0; font-size: 12.5px; color: #646b75; line-height: 1.55; }
.social-group-info-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.social-group-info-section h3 { margin: 0 0 12px; font-size: 14px; font-weight: 650; color: #2b3038; }
.social-group-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.social-group-ai-card {
  display: flex; flex-direction: column; gap: 10px; padding: 15px; border: 1px solid #e5e9ef; border-radius: 16px; background: #fff;
}
.social-group-ai-top { display: flex; align-items: center; gap: 10px; }
.social-group-ai-title { flex: 1; min-width: 0; }
.social-group-ai-title strong, .social-group-ai-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-group-ai-title strong { font-size: 13.5px; font-weight: 650; }
.social-group-ai-title small { margin-top: 2px; font-size: 12px; color: #6a707a; }
.social-group-ai-desc { margin: 0; font-size: 12.5px; line-height: 1.6; color: #4e545e; flex: 1; }
.social-group-ai-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid #f1f3f6; }

/* 宽屏并排显示右侧群成员，中屏/半屏/窄屏自动回落浮层防挤压 */
@media (min-width: 1220px) {
  .social-app { grid-template-columns: 70px 248px minmax(0, 1fr); }
  .social-details {
    position: static; flex: none; width: 268px; border-left: 1px solid #eceef0; box-shadow: none; padding: 0 16px 40px;
  }
}
@media (max-width: 1219px) {
  .social-group-pane, .social-pane-reopen { display: none !important; }
  .social-details { z-index: 22; box-shadow: -14px 0 38px rgba(20, 26, 33, .14); }
}
@media (max-width: 700px) {
  .social-sidebar-quick { margin: 0 12px 10px; }
  .social-apps-popover { width: min(296px, calc(100vw - 24px)); }
}

/* 四栏布局下的输入区 */
.social-chat-body .social-composer-area { padding: 0 14px 14px; }
.social-chat-body .social-composer.social-composer-unified { padding: 12px 12px 10px; border-radius: 22px; }
.social-composer-tools { gap: 3px; }
.social-composer-tools .social-tool-icon { width: 30px; height: 30px; min-height: 30px; padding: 4px; }
.social-composer-tools .social-tool-button { min-height: 30px; padding: 5px 8px; gap: 4px; font-size: 12px; }
.social-composer-model { max-width: 152px; }
.social-composer-toolbar { gap: 6px; }
.social-modal .social-form { gap: 12px; }

@media (max-width: 560px) {
  .social-chat .social-composer-tools .social-tool-button { width: 30px; padding: 4px !important; }
  .social-chat .social-composer-tools .social-tool-button > span { display: none; }
  div.social-model-menu .social-model-current { padding: 5px 9px; margin: 2px 2px 5px; }
}
@media (max-height: 520px) {
  div.social-model-menu .social-picker-caption { min-height: 30px; padding-block: 1px; }
  div.social-model-menu .social-model-current { margin-block: 0 4px; padding: 4px 8px; }
  .social-model-menu .social-model-current > :first-child { display: none; }
  .social-model-menu .social-model-current > .social-model-current-copy { display: flex; flex-direction: row; align-items: baseline; gap: 8px; }
  .social-model-menu .social-model-current-copy small { margin: 0; }
  .social-model-choices { overflow-y: auto; }
  .social-model-choices .social-model-options { flex: none; max-height: none; overflow: visible; }
}

html[data-yb-theme='dark'] :is(.social-mention-menu, .social-model-menu) { color: var(--yb-ink); background: var(--yb-paper); border-color: var(--yb-line-strong); }
html[data-yb-theme='dark'] .social-model-menu .social-picker-caption { color: var(--yb-ink); }
html[data-yb-theme='dark'] :is(.social-mention-option, .social-model-option, .social-model-agent-tab, .social-model-source-tab) { color: var(--yb-ink-2); background: transparent; }
html[data-yb-theme='dark'] :is(.social-mention-option.active, .social-mention-option:hover, .social-model-option:hover, .social-model-agent-tab.selected, .social-model-source-tab.selected) {
  color: var(--yb-ink); background: var(--yb-water-mist);
}
html[data-yb-theme='dark'] .social-model-menu .social-model-option[aria-pressed='true'] { background: var(--yb-water-soft); border-color: var(--yb-line-strong); }
html[data-yb-theme='dark'] :is(.social-model-menu .social-model-current, .social-model-source-tabs, .social-model-menu input) {
  color: var(--yb-ink); background: var(--yb-canvas); border-color: var(--yb-line-strong);
}
html[data-yb-theme='dark'] :is(.social-picker-caption small, .social-picker-foot, .social-picker-empty, .social-model-menu .social-model-current small, .social-model-menu .social-model-option small, .social-model-menu .social-model-option-state, .social-mention-option small) { color: var(--yb-ink-3); }
html[data-yb-theme='dark'] .social-recipient-choice:hover { background: var(--yb-water-soft); }

.social-chat-body { --social-chat-inset: clamp(12px, 2.4vw, 24px); }
.social-chat-body .social-message-list.workbench-chat-column {
  padding: 20px var(--social-chat-inset) 10px;
}
.social-chat-body .social-composer-area.workbench-chat-column {
  padding: 0 var(--social-chat-inset) 14px;
}
.social-chat .social-message { margin-bottom: 18px; }
.social-chat .social-message > .social-avatar { flex: none; white-space: nowrap; line-height: 1; }
.social-chat .social-message.mine > .social-avatar { margin-top: 1px; }
.social-chat .social-message-author { margin-bottom: 5px; }
.social-chat .social-message-author strong,
.social-message-model > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-chat .social-message-author .social-message-model {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 60%; 
  font-size: 12px;
}
.social-chat .social-message-author .social-message-model > span:not(.model-picker-mark) { padding: 0; color: inherit; background: none; font: inherit; }
.social-message-model :is(img, svg, .model-picker-mark) { flex: none; width: 13px; height: 13px; }
.social-chat .social-bubble > .workbench-chat-message-time { display: block; text-align: right; white-space: nowrap; }
.social-chat .social-message-meta { margin-top: 5px; }
.social-message-read { align-self: flex-start; }
.social-receipt-button {
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 2px 5px;
  border: 0; border-radius: 6px; background: transparent; color: var(--yb-muted); font: inherit; font-size: 12px;
  white-space: nowrap; cursor: pointer;
}
.social-receipt-button:is(:hover, [aria-expanded='true']) { color: var(--yb-ink); background: var(--yb-water-mist); }
.social-receipt-popup {
  position: fixed; z-index: 60; inset: auto; box-sizing: border-box; width: min(272px, calc(100vw - 20px));
  margin: 0; padding: 11px; overflow: auto; color: var(--yb-ink); background: var(--yb-paper);
  border: 1px solid var(--yb-line-strong); border-radius: 12px; box-shadow: var(--yb-shadow-2);
}
.social-receipt-popup > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.social-receipt-popup > header strong { font-size: 13px; }
.social-receipt-popup > header button { flex: none; width: 28px; min-height: 28px; height: 28px; color: var(--yb-muted); }
.social-receipt-popup p { margin: 6px 0 0; color: var(--yb-muted); font-size: 12px; }
.social-receipt-list { padding: 5px 2px; }
.social-receipt-list + .social-receipt-list { border-top: 1px solid var(--yb-line); }
.social-receipt-list h4 { margin: 5px 0; color: var(--yb-muted); font-weight: 600; font-size: 12px; }
.social-receipt-list ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.social-receipt-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding: 4px 0; overflow-wrap: anywhere; }
.social-receipt-list li > small { flex: none; color: var(--yb-muted); font-size: 12px; }
.social-chat .social-run-states { justify-content: flex-start; }
.social-chat .social-message.mine .social-run-states { justify-content: flex-end; }
.social-chat .social-run { min-height: 22px; background: var(--yb-canvas); color: var(--yb-ink-3); font-size: 12px; }
.social-chat .social-run.social-run-wait { display: inline-flex; align-items: center; gap: 5px; padding: 2px 5px; background: transparent; }
.social-run-elapsed { color: var(--yb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.social-send-progress { margin: 0 0 5px; padding-inline: 3px; color: var(--yb-muted); }
.social-send-progress:empty { display: none; }
.social-chat .social-run:is(.failed, .unknown, .blocked) { background: #f8f3e9; color: #74502d; }
.social-chat .social-run .social-cancel-run { min-height: 26px; margin-left: 0; padding: 0 3px; color: inherit; }
.social-inline-error {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  min-width: 0; margin: 0 0 6px; padding: 6px 9px;
  border-radius: 8px; background: var(--yb-canvas); color: var(--yb-ink-3);
}
.social-inline-error .social-text-button { flex: none; color: inherit; }
.social-main > .social-inline-error, .social-chat-body > .social-inline-error { margin: 8px 12px 0; }
.social-chat .social-recipients {
  flex-wrap: nowrap; gap: 4px 6px; padding: 4px 5px; overflow-x: auto; scrollbar-width: thin;
}
.social-chat .social-recipient, .social-chat .social-recipient-skip-all { flex: none; min-height: 28px; margin-bottom: 0; }
.social-chat .social-recipient .social-avatar.small { flex: none; white-space: nowrap; font-size: 12px; line-height: 1; }
.social-chat .social-recipient-skip-all { padding: 3px 7px; }
.social-chat .social-composer-submit .social-composer-model { flex: 0 1 auto; min-width: 0; }
.social-chat .social-composer-submit .social-send { margin-left: 0; }

html[data-yb-theme='dark'] .social-chat .social-run:is(.failed, .unknown, .blocked) { background: #352c25; color: #f0c9a2; }
html[data-yb-theme='dark'] .social-chat .social-run .social-cancel-run:hover { background: var(--yb-water-soft); }
html[data-yb-theme='dark'] .social-recipient-skip-all { color: var(--yb-ink-3); background: var(--yb-paper); border-color: var(--yb-line); }
html[data-yb-theme='dark'] .social-recipient-skip-all:hover { background: var(--yb-water-soft); }

@supports selector(::-webkit-scrollbar) {
  @media (min-width: 521px) {
    .social-chat-body { --social-log-scrollbar: 8px; }
    .social-chat-body .social-message-scroll { scrollbar-width: auto; scrollbar-color: auto; }
    .social-chat-body .social-message-scroll::-webkit-scrollbar { width: var(--social-log-scrollbar); }
    .social-chat-body .social-message-scroll::-webkit-scrollbar-thumb { border-radius: 8px; background: var(--yb-line-strong); }
    .social-chat .social-chat-body .social-composer-area.workbench-chat-column { width: calc(100% - 2 * var(--social-log-scrollbar)); }
  }
}

@media (max-width: 520px) {
  .social-chat .social-composer-tools .social-tool-icon { width: 33px; min-height: 33px; }
  .social-chat .social-composer-submit .social-composer-model { padding-inline: 3px; }
  .social-chat .social-composer-submit .social-composer-model > svg:last-child { display: none; }
}

.social-reply-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 0 6px; border-bottom: 1px solid var(--wb-line);
}
.social-reply-trigger, .social-reply-plain {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px;
  padding: 4px 7px; border: 0; border-radius: var(--wb-control-radius);
  color: var(--wb-muted); background: transparent; font: inherit; font-size: 12px; white-space: nowrap;
}
.social-reply-trigger { color: var(--wb-accent); cursor: pointer; }
.social-reply-trigger:is(:hover, [aria-expanded='true']):not(:disabled) { background: var(--wb-accent-soft); }
.social-reply-trigger:disabled { cursor: default; }
.social-reply-trigger svg { flex: none; }
.social-discussion-hint { padding-inline-start: 5px; border-inline-start: 1px solid var(--wb-line-strong); color: var(--wb-muted); font-size: 12px; }
.social-reply-bar .social-recipient-skip-all {
  border-color: transparent; border-radius: var(--wb-control-radius); color: var(--wb-muted); background: transparent;
}
.social-reply-bar .social-recipient-skip-all:hover:not(:disabled) { background: var(--wb-subtle); color: var(--wb-ink); }
.social-reply-menu {
  position: fixed; z-index: 46; inset: auto; box-sizing: border-box; margin: 0; padding: 6px;
  overflow: auto; overscroll-behavior: contain; color: var(--wb-ink); background: var(--wb-canvas);
  border: 1px solid var(--wb-line-strong); border-radius: var(--wb-panel-radius); box-shadow: var(--wb-overlay-shadow);
}
.social-reply-menu .social-picker-caption { padding: 3px 7px 7px; }
.social-reply-menu .social-picker-caption .social-icon-button { color: var(--wb-muted); }
.social-reply-menu .social-picker-caption .social-icon-button:hover { color: var(--wb-ink); background: var(--wb-subtle); }
.social-reply-limit { margin: 0 7px 6px; color: var(--wb-muted); font-size: 12px; }
.social-chat .social-reply-menu .social-recipients {
  display: flex; flex-direction: column; gap: 0; padding: 0; overflow: visible;
}
.social-chat .social-reply-menu .social-recipient {
  min-height: 42px; margin: 0; padding: 4px 7px; border-top: 1px solid var(--wb-line); border-radius: 0;
  color: var(--wb-ink); background: var(--wb-canvas);
}
.social-reply-menu .social-recipient-choice { flex: 1; justify-content: flex-start; gap: 8px; min-height: 32px; padding: 4px 7px; text-align: start; }
.social-reply-menu .social-recipient-choice small { max-width: none; padding: 0; color: var(--wb-muted); background: transparent; font-size: 12px; }
.social-reply-menu .social-recipient-choice svg { margin-inline-start: auto; color: var(--wb-muted); }
.social-reply-menu .social-recipient-remove { width: 32px; height: 32px; margin-inline-start: auto; color: var(--wb-muted); }
.social-reply-menu :is(.social-recipient-choice, .social-recipient-remove):hover { background: var(--wb-subtle); }
.social-discussion-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 7px 4px; border-top: 1px solid var(--wb-line); font-size: 13px;
}
.social-discussion-option p { margin: 3px 0 0; color: var(--wb-muted); font-size: 12px; line-height: 1.5; }
.social-discussion-switch {
  flex: none; min-height: 36px; padding: 4px 10px; border: 1px solid var(--wb-line-strong);
  border-radius: var(--wb-control-radius); background: var(--wb-canvas); color: var(--wb-muted); font: inherit; cursor: pointer;
}
.social-discussion-switch[aria-checked='true'] { border-color: var(--wb-accent); color: var(--wb-accent); background: var(--wb-accent-soft); }
.social-finalize-option p { overflow-wrap: anywhere; }
.social-finalize-option .social-text-button { margin-block-start: 3px; }
.social-chat .social-message-author .social-message-phase[data-social-final-ready] {
  color: var(--wb-accent); background: var(--wb-accent-soft); font-weight: 650;
}
.social-message-reference {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 26px; margin: 0 0 4px;
  padding: 2px 6px; border: 0; border-radius: var(--wb-control-radius); background: transparent;
  color: var(--wb-muted); font: inherit; font-size: 12px; cursor: pointer;
}
.social-message-reference svg { transform: rotate(180deg); flex: none; }
.social-message-reference > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-message-reference:hover { color: var(--wb-accent); background: var(--wb-accent-soft); }
.social-message-mention { color: var(--wb-accent); font-weight: 650; }
.social-live-reply[aria-busy='true'] [data-social-live-copy]::after {
  content: ''; display: inline-block; width: 0; height: .8em;
  border-inline-start: 2px solid var(--wb-accent); margin-inline-start: 3px;
  vertical-align: -.03em; animation: social-live-caret 1s steps(2, jump-none) infinite;
}
@keyframes social-live-caret { to { opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  .social-live-reply[aria-busy='true'] [data-social-live-copy]::after { animation: none; }
}
.social-message:focus-visible .social-bubble { outline: 2px solid var(--wb-accent); outline-offset: 2px; }
.social-listening-help { margin: 0 0 12px; }
.social-reply-bar :is(.social-reply-trigger, .social-recipient-skip-all):focus-visible,
.social-reply-menu :is(.social-icon-button, .social-recipient-choice, .social-recipient-remove, .social-discussion-switch, [data-social-finalize-swap]):focus-visible,
.social-message-reference:focus-visible {
  outline: 2px solid var(--wb-accent); outline-offset: -2px;
}

@media (max-width: 760px) {
  .social-reply-bar { gap: 4px; padding-bottom: 3px; }
  .social-reply-bar :is(.social-reply-trigger, .social-recipient-skip-all) { min-height: 34px; }
  .social-chat .social-reply-menu .social-recipient { min-height: 48px; }
  .social-reply-menu :is(.social-recipient-choice, .social-recipient-remove, .social-discussion-switch) { min-height: 40px; }
}
