/* Chat-only visual layer. Public pages and account flows keep their own styles. */
.web-assistant-shell { --chat-ink: #25272c; --chat-muted: #727780; --chat-line: #e9eaec; color: var(--chat-ink); }
.web-assistant-shell .assistant-stage { background: #fff; }
.web-assistant-shell .assistant-topbar { padding-inline: clamp(18px, 3vw, 40px); border-color: var(--chat-line); background: #fff; }
.web-assistant-shell .assistant-status, .web-assistant-shell .assistant-topbar-title, .web-assistant-shell button { font-family: "Manrope", sans-serif; }
.web-assistant-shell .assistant-status { color: #393e46; font-size: 13px; font-weight: 600; }
.web-assistant-shell .assistant-rail { gap: 12px; padding: 16px 14px; background: #fafafa; }
.web-assistant-shell .assistant-workspace-nav { gap: 3px; margin-block: 2px 12px; }
.web-assistant-shell .assistant-workspace-nav > button, .web-assistant-shell .assistant-workspace-nav > a { min-height: 40px; padding: 9px 12px; font: 600 13px/1.4 "Manrope", sans-serif; border-radius: 10px; }
.web-assistant-shell .workspace-nav-icon, .web-assistant-shell .workspace-nav-icon svg { width: 17px; height: 17px; }
.web-assistant-shell .assistant-history-item { min-height: 36px; border-radius: 9px; }
.web-assistant-shell .assistant-history-item > a { font-size: 12px; font-weight: 500; }
.web-assistant-shell .assistant-conversation { padding: 30px clamp(18px, 5vw, 80px) 32px; scrollbar-width: thin; scrollbar-color: #d5d8dd transparent; scroll-padding-bottom: 24px; }
.web-assistant-shell .assistant-message { max-width: 800px; gap: 14px; margin: 0 auto 34px; grid-template-columns: 28px minmax(0, 1fr); align-items: start; }
.web-assistant-shell .assistant-avatar { width: 28px; height: 28px; margin-top: 4px; border-radius: 9px; }
.web-assistant-shell .assistant-avatar img { width: 100%; height: 100%; object-fit: contain; }
.web-assistant-shell .assistant-bubble { min-width: 0; width: 100%; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--chat-ink); }
.web-assistant-shell .assistant-message.is-user { display: flex; flex-direction: row; justify-content: flex-end; }
.web-assistant-shell .assistant-message.is-user .assistant-avatar { display: none; }
.web-assistant-shell .assistant-message.is-user .assistant-bubble { width: auto; max-width: min(620px, 88%); padding: 13px 18px; background: #f1f2f4; border-radius: 20px 20px 6px 20px; color: var(--chat-ink); }
.web-assistant-shell .assistant-message-content { color: var(--chat-ink); font: 400 15px/1.8 "Manrope", sans-serif; white-space: normal; overflow-wrap: anywhere; }
.web-assistant-shell .assistant-message-content > :first-child { margin-top: 0; }
.web-assistant-shell .assistant-message-content > :last-child { margin-bottom: 0; }
.web-assistant-shell .assistant-message-content p { margin: 0 0 16px; white-space: pre-line; }
.web-assistant-shell .assistant-message-content h2, .web-assistant-shell .assistant-message-content h3, .web-assistant-shell .assistant-message-content h4, .web-assistant-shell .assistant-message-content h5, .web-assistant-shell .assistant-message-content h6 { margin: 26px 0 10px; color: var(--chat-ink); font: 700 17px/1.5 "Manrope", sans-serif; letter-spacing: -.025em; }
.web-assistant-shell .assistant-message-content strong { color: inherit; font-weight: 700; }
.web-assistant-shell .assistant-message-content ul, .web-assistant-shell .assistant-message-content ol { margin: 8px 0 18px; padding-left: 24px; }
.web-assistant-shell .assistant-message-content li { padding-left: 4px; margin: 6px 0; }
.web-assistant-shell .assistant-message-content a { color: #1263a2; font-weight: 500; text-decoration-color: #bad3e7; text-underline-offset: 3px; }
.web-assistant-shell .assistant-message-content blockquote { margin: 18px 0; border-left: 3px solid #b9d3e9; padding: 4px 16px; color: #666d77; }
.web-assistant-shell .assistant-message-content hr { border: 0; border-top: 1px solid var(--chat-line); margin: 24px 0; }
.web-assistant-shell .assistant-message-content :not(pre) > code { padding: 2px 5px; border-radius: 5px; background: #f0f2f5; color: #34435a; font-size: .87em; }
.web-assistant-shell .assistant-code-block { margin: 18px 0; overflow: hidden; border: 1px solid #e2e5e9; border-radius: 12px; background: #f8f9fb; }
.web-assistant-shell .assistant-code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; background: #eef0f3; color: #565f6c; font: 500 11px/1.4 "Manrope", sans-serif; }
.web-assistant-shell .assistant-code-toolbar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-assistant-shell .assistant-code-toolbar > div { display: flex; flex-shrink: 0; gap: 6px; }
.web-assistant-shell .assistant-code-toolbar button { min-height: 30px; padding: 4px 9px; border: 1px solid #d9dde3; border-radius: 6px; background: #fff; color: #3c4655; font-size: 11px; cursor: pointer; }
.web-assistant-shell .assistant-message-content pre { box-sizing: content-box; max-height: 160px; margin: 0; padding: 12px 14px; overflow: auto; border: 0; border-radius: 0; background: #f8f9fb; color: #26364b; white-space: pre; scrollbar-color: #c6ccd4 transparent; }
.web-assistant-shell .assistant-message-content pre code { font: 12px/20px "DM Mono", monospace; white-space: pre; }
.web-assistant-shell .assistant-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--chat-line); border-radius: 10px; }
.web-assistant-shell .assistant-table-wrap table, .web-assistant-shell .assistant-table-wrap th, .web-assistant-shell .assistant-table-wrap td { color: var(--chat-ink); }
.web-assistant-shell .assistant-rail-brand { color: var(--chat-ink); }
.web-assistant-shell .assistant-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.web-assistant-shell .assistant-table-wrap th, .web-assistant-shell .assistant-table-wrap td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--chat-line); }
.web-assistant-shell .assistant-table-wrap th { background: #f6f7f9; font-weight: 600; }
.web-assistant-shell .assistant-message-actions { gap: 4px; margin-top: 12px; }
.web-assistant-shell .assistant-message-actions button, .web-assistant-shell .assistant-message.is-user .assistant-message-actions button { min-height: 30px; padding: 5px 8px; background: transparent; color: #747b85; font: 500 11px "Manrope", sans-serif; }
.web-assistant-shell .assistant-message-actions button:hover { background: #e9edf1; color: #202a37; }
.web-assistant-shell .assistant-sources { display: flex; overflow-x: auto; padding: 12px 0 4px; gap: 8px; border-color: var(--chat-line); }
.web-assistant-shell .assistant-source-card { min-width: 190px; max-width: 240px; flex: 0 0 auto; background: #fafbfc; border-color: #e7e9ee; box-shadow: none; }
.web-assistant-shell .assistant-source-card strong { color: #414a58; font-size: 12px; font-weight: 600; }
.web-assistant-shell .assistant-source-card b { font-weight: 400; }
.web-assistant-shell .assistant-composer-wrap { padding: 12px clamp(18px, 5vw, 80px) 16px; border: 0; background: linear-gradient(0deg, #fff 88%, #ffffff00); }
.web-assistant-shell .assistant-composer { max-width: 800px; padding: 14px 18px 12px; border: 1px solid #e4e6e9; border-radius: 24px; background: #f5f5f6; box-shadow: 0 4px 18px #182b4205; }
.web-assistant-shell .assistant-composer textarea { color: var(--chat-ink); font: 400 14px/1.7 "Manrope", sans-serif; }
.web-assistant-shell .assistant-composer textarea::placeholder { color: #858b94; }
.web-assistant-shell .assistant-composer-actions button { border-radius: 50%; }
.web-assistant-shell .assistant-message.is-pending .assistant-bubble { padding: 7px 0; background: none; border: 0; box-shadow: none; animation: none; font-style: normal; }
.web-assistant-shell .assistant-message.is-pending .assistant-message-content { color: #727780; font-weight: 500; font-size: 13px; }
.web-assistant-shell button:focus-visible, .web-assistant-shell a:focus-visible, .web-assistant-shell pre:focus-visible { outline: 2px solid #3588c9; outline-offset: 3px; }
@media (max-width: 680px) {
  .web-assistant-shell .assistant-message { gap: 9px; grid-template-columns: 23px minmax(0, 1fr); margin-bottom: 26px; }
  .web-assistant-shell .assistant-avatar { width: 23px; height: 23px; }
  .web-assistant-shell .assistant-message-content { font-size: 14px; line-height: 1.8; }
  .web-assistant-shell .assistant-message.is-user .assistant-bubble { max-width: 92%; padding: 11px 14px; }
  .web-assistant-shell .assistant-code-toolbar { padding: 7px 9px; }
  .web-assistant-shell .assistant-code-toolbar button { min-height: 36px; }
  .web-assistant-shell .assistant-topbar-title > span:last-child { display: none; }
  .web-assistant-shell .assistant-composer { padding: 12px 14px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .web-assistant-shell *, .web-assistant-shell *::before, .web-assistant-shell *::after { animation: none !important; scroll-behavior: auto !important; } }
