/* IUAI_LIGHT_CHAT_CONTRAST_FIX_V1_20261016 */
body:not([data-theme="dark"]) .assistant-bubble{color:var(--ink,#0b1730);border-color:var(--line,#dce5f1);background:#ffffff}
body:not([data-theme="dark"]) .assistant-message.user .assistant-bubble{background:linear-gradient(135deg,#e9f5ff,#eeeaff);border-color:#c7d8ef;color:#10233d;box-shadow:0 6px 18px rgba(60,90,150,.08)}
body:not([data-theme="dark"]) .assistant-message.assistant .assistant-bubble{background:transparent;border-color:transparent;color:var(--ink,#0b1730)}
body:not([data-theme="dark"]) .assistant-message.user .assistant-bubble .rich-text,body:not([data-theme="dark"]) .assistant-message.user .assistant-bubble .rich-text *{color:inherit}
body:not([data-theme="dark"]) .assistant-mode-pill{border-color:#c8d6e6;color:#58718e;background:#f7faff}
body:not([data-theme="dark"]) .chat-message-context .chat-context-mini,body:not([data-theme="dark"]) .quote-chip{background:#f0f4ff!important;border-color:#cbd6ea!important;color:#233651!important}

/* V1.1: AI 对话协作模式白色主题补强 */
/* IUAI_AICHAT_WHITE_THEME_FIX_V2_20261016 */
/* Fixes AI 对话 / 协作 AI 对话 components that still hard-code dark backgrounds/text. */

/* Collaborative AI conversation: messages */
body:not([data-theme="dark"]) .iuai-collab-message-v5910 .iuai-collab-bubble-v5910{
  background:#ffffff!important;
  border-color:#d7e1ec!important;
  color:#152b42!important;
  box-shadow:0 6px 18px rgba(31,61,96,.06)!important;
}
body:not([data-theme="dark"]) .iuai-collab-message-v5910.mine .iuai-collab-bubble-v5910{
  background:linear-gradient(135deg,#e7f4ff,#edf0ff)!important;
  border-color:#bfd6ed!important;
  color:#102b46!important;
}
body:not([data-theme="dark"]) .iuai-collab-message-v5910.ai .iuai-collab-bubble-v5910{
  background:transparent!important;
  border-color:transparent!important;
  color:#152b42!important;
  box-shadow:none!important;
}
body:not([data-theme="dark"]) .iuai-collab-bubble-v5910 p,
body:not([data-theme="dark"]) .iuai-collab-bubble-v5910 li,
body:not([data-theme="dark"]) .iuai-collab-bubble-v5910 span,
body:not([data-theme="dark"]) .iuai-collab-bubble-v5910 strong,
body:not([data-theme="dark"]) .iuai-collab-bubble-v5910 em{
  color:inherit!important;
}
body:not([data-theme="dark"]) .iuai-collab-bubble-v5910 a{
  color:#0868b8!important;
}
body:not([data-theme="dark"]) .iuai-collab-bubble-v5910 pre{
  background:#f1f5f9!important;
  border:1px solid #d9e2ec!important;
  color:#14283b!important;
}
body:not([data-theme="dark"]) .iuai-collab-bubble-v5910 code{
  color:#17324e!important;
}
body:not([data-theme="dark"]) .iuai-collab-message-v5910 .iuai-collab-who-v5910{
  color:#60788f!important;
}
body:not([data-theme="dark"]) .iuai-collab-message-v5910 .iuai-collab-msg-avatar-v5910{
  background:#eef4fa!important;
  border-color:#cbd8e5!important;
  color:#173552!important;
}
body:not([data-theme="dark"]) .iuai-collab-thinking-v5910{
  color:#58728a!important;
}
body:not([data-theme="dark"]) .iuai-collab-source-v5910 a{
  color:#176da8!important;
  border-color:#bdd8ea!important;
  background:#f6fbff!important;
}
body:not([data-theme="dark"]) .iuai-collab-owner-pill-v5910{
  color:#a26908!important;
  border-color:#e7c982!important;
  background:#fff8e8!important;
}

/* Collaborative conversation header / banner / toolbar */
body:not([data-theme="dark"]) .iuai-collab-toolbar-v5910{
  color:#176c96!important;
  border-color:#b8d5e5!important;
  background:#f6fbfe!important;
}
body:not([data-theme="dark"]) .iuai-collab-banner-v5910{
  background:#f5fbff!important;
  border-color:#cbdde8!important;
  color:#315b78!important;
}
body:not([data-theme="dark"]) .iuai-collab-banner-v5910 button{
  color:#0876b4!important;
}
body:not([data-theme="dark"]) .iuai-collab-status-v5910{
  color:#23825f!important;
}
body:not([data-theme="dark"]) .iuai-collab-avatar-v5910{
  background:#edf5fa!important;
  border-color:#ffffff!important;
  color:#183a55!important;
  box-shadow:0 0 0 1px #c8d8e5!important;
}
body:not([data-theme="dark"]) .iuai-collab-invite-v5910{
  background:#f7fbfe!important;
  border-color:#c6d8e6!important;
  color:#183650!important;
}
body:not([data-theme="dark"]) .iuai-collab-invite-v5910:hover{
  background:#edf7fd!important;
  border-color:#65bce8!important;
}

/* Composer card shown in the user's screenshot */
body:not([data-theme="dark"]) .iuai-collab-composer-v5911{
  border-color:#dce4ec!important;
}
body:not([data-theme="dark"]) .iuai-collab-composer-copy-v5911 b{
  color:#17324c!important;
}
body:not([data-theme="dark"]) .iuai-collab-composer-copy-v5911 small{
  color:#61778b!important;
}
body:not([data-theme="dark"]) .iuai-collab-invite-composer-v5911{
  background:#f4f9fd!important;
  border-color:#bfd7e6!important;
  color:#173650!important;
  box-shadow:0 5px 16px rgba(45,82,118,.07)!important;
}
body:not([data-theme="dark"]) .iuai-collab-invite-composer-v5911:hover{
  background:#eaf5fc!important;
  border-color:#55b8e6!important;
}
body:not([data-theme="dark"]) .iuai-collab-people-icon-v5911{
  color:#1583b8!important;
}

/* Invite/member modal */
body:not([data-theme="dark"]) .iuai-collab-card-v5910{
  background:#ffffff!important;
  border-color:#d7e1e9!important;
  color:#162a3d!important;
  box-shadow:0 28px 80px rgba(36,55,75,.18)!important;
}
body:not([data-theme="dark"]) .iuai-collab-modal-head-v5910 p,
body:not([data-theme="dark"]) .iuai-collab-section-v5910 h3,
body:not([data-theme="dark"]) .iuai-collab-note-v5910,
body:not([data-theme="dark"]) .iuai-collab-empty-v5910{
  color:#657b8e!important;
}
body:not([data-theme="dark"]) .iuai-collab-person-v5910{
  background:#f8fafc!important;
  border-color:#dbe4ec!important;
  color:#172d42!important;
}
body:not([data-theme="dark"]) .iuai-collab-person-v5910 .meta small{
  color:#657c90!important;
}
body:not([data-theme="dark"]) .iuai-collab-person-v5910 button,
body:not([data-theme="dark"]) .iuai-collab-actions-v5910 button{
  background:#f2f7fb!important;
  border-color:#cbd9e5!important;
  color:#183650!important;
}
body:not([data-theme="dark"]) .iuai-collab-person-v5910 button.primary,
body:not([data-theme="dark"]) .iuai-collab-actions-v5910 button.primary{
  background:linear-gradient(135deg,#168bd0,#7058e8)!important;
  color:#fff!important;
  border-color:transparent!important;
}
body:not([data-theme="dark"]) .iuai-collab-close-v5910{
  color:#557086!important;
}

/* Older/normal AI chat bubbles: retain coverage from V1 with stronger selectors. */
body:not([data-theme="dark"]) .assistant-bubble,
body:not([data-theme="dark"]) .chat-message .assistant-bubble{
  color:#142b42!important;
}
body:not([data-theme="dark"]) .assistant-message.user .assistant-bubble,
body:not([data-theme="dark"]) .chat-message.user .assistant-bubble{
  background:linear-gradient(135deg,#e8f4ff,#efedff)!important;
  border-color:#c5d8ec!important;
  color:#102b46!important;
}
body:not([data-theme="dark"]) .assistant-message.assistant .assistant-bubble,
body:not([data-theme="dark"]) .chat-message.assistant .assistant-bubble{
  background:transparent!important;
  border-color:transparent!important;
  color:#142b42!important;
}

