/* Conversation UI is scoped to keep business screens unchanged. */
.ask-chrome-toggle { display:none; }
body.is-ask .workspace { display:grid; grid-template-rows:auto minmax(0,1fr); min-height:0; height:100dvh; }
body.is-ask .content-scroll { min-height:0; overflow:hidden; display:flex; flex-direction:column; }
body.is-ask #view-root { display:flex; flex-direction:column; flex:1; min-height:0; width:100%; max-width:none; margin:0; }
body.is-ask .view[data-view=ask], body.is-ask .ask-stack, body.is-ask .ask-shell { display:flex; flex-direction:column; flex:1; min-height:0; margin:0; gap:0; }
body.is-ask .ask-shell { position:relative; align-items:stretch; min-width:0; background:#fff; border:1px solid var(--line); border-radius:20px; overflow:hidden; font-size:16px; line-height:1.65; }
body.is-ask .ask-history-sidebar { display:none; position:absolute; left:16px; top:64px; bottom:16px; width:304px; max-width:calc(100% - 32px); padding:16px; background:#fff; border:1px solid #e4eaf2; border-radius:16px; z-index:40; box-shadow:0 12px 32px #17233b22; }
body.is-ask.ask-history-open .ask-history-sidebar { display:block; }
body.is-ask .ask-history-backdrop { display:none; }
body.is-ask.ask-history-open .ask-history-backdrop { display:block; position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:inherit; background:#12182622; z-index:30; }
body.is-ask .ask-history-close { display:grid; place-items:center; width:36px; height:36px; padding:0; background:none; border:0; border-radius:9px; font-size:26px; color:#737987; cursor:pointer; }
body.is-ask .ask-history-drawer { height:100%; }
body.is-ask .ask-history-panel { display:flex; flex-direction:column; height:100%; min-height:0; padding:0; margin:0; border:0; border-radius:0; background:none; box-shadow:none; }
body.is-ask .ask-sidebar-head { flex:none; margin:0 0 8px; padding:0 12px; min-height:24px; align-items:center; }
body.is-ask .ask-sidebar-head h3 { margin:0; font-size:12px; font-weight:500; color:#737987; }
body.is-ask .ask-sidebar-new { display:flex; align-items:center; gap:10px; flex:none; width:100%; padding:11px 12px; margin-bottom:16px; background:none; border:0; border-radius:10px; color:#303540; font:inherit; font-size:14px; text-align:left; cursor:pointer; }
body.is-ask .ask-sidebar-new:hover { background:#eceff6; }
body.is-ask .ask-history-list { display:flex; flex-direction:column; min-height:0; overflow:auto; gap:3px; padding-right:2px; scrollbar-width:thin; }
body.is-ask .ask-history-item { display:block; flex:none; width:100%; padding:11px 12px; background:none; border:0; border-radius:10px; box-shadow:none; color:#343942; text-align:left; }
body.is-ask .ask-history-item:hover { background:#eceff6; }
body.is-ask .ask-history-item.is-active { background:#e9edfc; border:0; box-shadow:none; }
body.is-ask .ask-history-item strong { display:-webkit-box; font-size:13px; line-height:1.5; font-weight:400; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
body.is-ask .ask-history-item span { display:none; }
body.is-ask .ask-history-item small { display:block; margin-top:4px; color:#818794; font-size:11px; }
body.is-ask .ask-history-empty { padding:12px; font-size:13px; color:#737987; }
body.is-ask .ask-thread-shell { display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; flex:1; min-height:0; gap:0; }
body.is-ask .ask-thread-topbar { min-height:64px; padding:12px 28px; display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:12px; margin:0; border:0; }
body.is-ask .ask-thread-brand { display:flex; align-items:center; gap:10px; min-width:0; flex:none; }
body.is-ask .ask-thread-topbar h3 { margin:0; font-size:18px; line-height:1.4; font-weight:600; letter-spacing:-.3px; white-space:nowrap; }
body.is-ask .ask-thread-topbar h3 span { font-weight:400; color:#888e99; }
body.is-ask .ask-thread-topbar__side { display:flex; width:auto; flex:none; align-items:center; gap:12px; }
body.is-ask .ask-icon-button { display:inline-flex; align-items:center; justify-content:center; flex:none; width:36px; height:36px; padding:0; border:0; border-radius:10px; background:none; color:#626875; box-shadow:none; cursor:pointer; }
body.is-ask .ask-icon-button:hover { background:#f1f3f8; color:#22252b; }
body.is-ask .ask-mobile-history { width:auto; gap:6px; padding:0 8px; font-size:13px; }
body.is-ask .llm-balance-badge { display:flex; align-items:center; gap:7px; min-width:0; padding:5px 9px; border:1px solid #e7eaf2; border-radius:9px; background:#f9faff; box-shadow:none; white-space:nowrap; }
body.is-ask .llm-balance-badge span { color:#737987; font-size:11px; }
body.is-ask .llm-balance-badge strong { color:#3c4b8a; font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
body.is-ask .ask-quality-slot { width:100%; max-width:800px; margin:0 auto; padding:0 24px; }
body.is-ask .data-quality-disclosure { flex:none; margin:0 0 8px; border:0; border-radius:10px; background:#fbf9ef; color:#776838; padding:8px 12px; font-size:12px; max-height:25dvh; overflow:auto; box-shadow:none; }
body.is-ask .ask-thread-panel { min-height:0; padding:0; margin:0; background:none; border:0; border-radius:0; box-shadow:none; overflow:auto; scrollbar-gutter:stable both-edges; scrollbar-width:thin; overscroll-behavior:contain; }
body.is-ask .ask-thread-feed { display:flex; flex-direction:column; min-height:0; width:100%; max-width:800px; margin:0 auto; gap:0; padding:32px 24px 48px; }
body.is-ask .ask-message { margin:0; max-width:100%; }
body.is-ask .ask-message-user { justify-content:flex-end; margin:0 0 30px 52px; }
body.is-ask .ask-bubble-user { padding:12px 18px; max-width:640px; width:auto; border:0; border-radius:22px; background:#f1f3f7; color:#30343c; box-shadow:none; }
body.is-ask .ask-bubble-user p { font-size:16px; font-weight:400; line-height:1.6; margin:0; }
body.is-ask .ask-message-assistant { margin:0 0 48px; }
body.is-ask .ask-message-assistant .ask-bubble-assistant { max-width:100%; width:100%; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
body.is-ask .ask-message-meta { display:none; }
body.is-ask .ask-speaker { font-size:12px; font-weight:600; color:#465fdb; letter-spacing:0; }
body.is-ask .ask-message-title { font-size:11px; color:#677286; }
body.is-ask .ask-assistant-frame, body.is-ask .ask-assistant-message, body.is-ask .ask-human-copy { display:block; padding:0; border:0; background:none; box-shadow:none; border-radius:0; }
body.is-ask .ask-human-copy__head { padding:0; margin:0 0 18px; gap:0; }
body.is-ask .ask-human-copy h4, body.is-ask .ask-human-fact-heading { margin:0; font-size:18px; font-weight:600; line-height:1.5; letter-spacing:0; }
body.is-ask .ask-human-fact-heading .ask-prose-paragraph { margin:0; font-size:inherit; line-height:inherit; }
body.is-ask .ask-human-body { display:block; padding:0; }
body.is-ask .ask-human-body, body.is-ask .ask-human-body p, body.is-ask .ask-prose-paragraph { font-size:16px; line-height:1.75; color:#22252b; }
body.is-ask .ask-prose-paragraph, body.is-ask .ask-human-body p { margin:0 0 18px; }
body.is-ask .ask-human-body .ask-inline-fact { font-size:inherit; }
body.is-ask .ask-fact-value { font-weight:600; text-decoration-color:#9aa9e0; text-underline-offset:4px; }
body.is-ask .ask-entity-link { color:#465fdb; text-decoration-color:#a6b3e7; }
body.is-ask .ask-entity-link:hover { color:#354cb5; text-decoration-color:currentColor; }
body.is-ask .ask-answer-visuals__title { color:#677286; }
body.is-ask .ask-answer-visuals__title::before { background:#5d78ff; }
body.is-ask .ask-visual-bar-track { background:#e9edf7; }
body.is-ask .ask-visual-bar-row.is-baseline .ask-visual-bar-track i,
body.is-ask .ask-visual-bar-row.is-neutral .ask-visual-bar-track i { background:#94a3de; }
body.is-ask .ask-visual-bar-row__meta span { color:#596475; }
body.is-ask .ask-visual-bar-row__meta strong { color:#283246; }
body.is-ask .ask-visual-chart__head strong { color:#283246; }
body.is-ask .ask-visual-chart__head span { color:#677286; }
body.is-ask .ask-client-detail { background:#f0f3f9; border-color:#dce3ee; }
body.is-ask .ask-client-detail p, body.is-ask .ask-client-detail__fact span { color:#596475; }
body.is-ask .ask-client-detail__fact { border-color:#dce3ee; }
body.is-ask .ask-answer-visuals { margin:20px 0 0; padding:0; border:0; background:none; box-shadow:none; }
body.is-ask .ask-visual-details { margin:0; }
body.is-ask .ask-visual-details > details { background:#fafbfc; border:1px solid #eceef2; border-radius:12px; box-shadow:none; }
body.is-ask .ask-visual-details > details > summary { padding:12px 14px; color:#626875; font-size:12px; }
body.is-ask .ask-visual-details > details > summary strong { color:#737987; font-size:11px; font-weight:500; text-transform:none; letter-spacing:0; }
body.is-ask .ask-visual-detail { border:0; border-top:1px solid #e2e7f0; border-radius:0; background:none; padding:10px 0; }
body.is-ask .ask-visual-detail summary { font-size:13px; color:#596475; }
body.is-ask .ask-visual-chart { border:0; border-radius:0; box-shadow:none; background:none; padding:12px 0; }
body.is-ask .ask-inline-fact__source { background:#f0f3f9; border:1px solid #dce3ee; border-radius:6px; padding:12px; overflow-wrap:anywhere; }
body.is-ask .ask-inline-fact__source dl { margin:0; }
body.is-ask .ask-inline-fact__source dt, body.is-ask .ask-inline-fact__source dd { color:#4f5d77; }
body.is-ask .ask-conversation-scope, body.is-ask .hint-box { font-size:13px; color:#66592d; background:#f6f4e9; border:0; border-left:2px solid #a3935a; border-radius:0; padding:10px 12px; margin:12px 0; }
body.is-ask .ask-conversation-next, body.is-ask .ask-answer-next-step { padding:12px 0; border:0; border-top:1px solid #dce3ee; background:none; border-radius:0; font-size:15px; }
body.is-ask .ask-composer-bar { position:relative; bottom:auto; width:100%; max-width:800px; margin:0 auto; padding:12px 24px max(16px,env(safe-area-inset-bottom)); border:0; border-radius:0; background:#fff; box-shadow:none; }
body.is-ask .ask-composer-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; padding:10px 12px 10px 18px; border:1px solid #e1e5ec; border-radius:28px; background:#fff; box-shadow:0 2px 8px #202b4508; }
body.is-ask .ask-composer-form:focus-within { border-color:#c8d1eb; box-shadow:0 2px 10px #465fdb0a; }
body.is-ask .ask-chat-input { min-height:36px; max-height:200px; padding:5px 0; resize:none; border:0; border-radius:0; background:none; box-shadow:none; font:inherit; font-size:16px; line-height:1.6; color:#22252b; overflow-y:auto; }
body.is-ask .ask-chat-input::placeholder { color:#6c727d; }
body.is-ask .ask-chat-input:focus-visible { outline:none; }
body.is-ask .ask-composer-actions { display:flex; }
body.is-ask .ask-send-button { display:grid; place-items:center; width:36px; min-width:36px; height:36px; min-height:36px; padding:0; background:#465fdb; color:#fff; border:0; border-radius:50%; font-size:13px; box-shadow:none; }
body.is-ask .ask-send-button:hover { background:#354cb5; }
body.is-ask .ask-send-button:disabled { background:#e2e6f1; color:#8c96b2; opacity:1; }
body.is-ask .ask-send-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body.is-ask .ask-composer-hint { margin:8px 0 0; color:#6c727d; font-size:11px; text-align:center; line-height:1.4; }
body.is-ask .ask-thread-shell.is-empty { grid-template-rows:auto auto minmax(0,1fr) auto minmax(0,1fr); }
body.is-ask .is-empty .ask-thread-panel { display:flex; align-items:flex-end; }
body.is-ask .is-empty .ask-thread-feed { padding-bottom:12px; }
body.is-ask .ask-empty-state-message { margin:0; }
body.is-ask .ask-empty-state { display:block; padding:24px 0 0; background:none; border:0; box-shadow:none; text-align:center; }
body.is-ask .ask-empty-state h3 { margin:0 0 10px; font-size:30px; line-height:1.3; font-weight:500; letter-spacing:-.7px; }
body.is-ask .ask-empty-state p { margin:0 0 22px; font-size:14px; color:#858b96; }
body.is-ask .ask-empty-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; }
body.is-ask .ask-empty-actions .filter-chip { font-size:12px; background:#fff; border:1px solid #e7eaf2; border-radius:20px; padding:8px 12px; color:#626875; box-shadow:none; }
body.is-ask .ask-shell :is(button, summary, input):focus-visible { outline:2px solid #465fdb; outline-offset:3px; }
body.is-ask .ask-message.is-error { border-left:2px solid #a74a36; padding-left:14px; }
@media (max-width:600px) {
  body.is-ask .ask-thread-topbar { min-height:60px; padding:8px 12px; gap:6px; }
  body.is-ask .ask-thread-brand { gap:5px; }
  body.is-ask .ask-thread-topbar h3 { font-size:17px; }
  body.is-ask .ask-thread-topbar h3 span { display:none; }
  body.is-ask .ask-thread-topbar__side { gap:5px; }
  body.is-ask .ask-icon-button { width:36px; height:40px; }
  body.is-ask .ask-history-label { display:none; }
  body.is-ask .ask-mobile-history { padding:0; }
  body.is-ask .llm-balance-badge { padding:5px 7px; gap:5px; }
  body.is-ask .llm-balance-badge span { font-size:10px; }
  body.is-ask .llm-balance-badge strong { font-size:11px; }
  body.is-ask .ask-quality-slot { padding:0 16px; }
  body.is-ask .data-quality-disclosure { font-size:11px; padding:7px 10px; }
  body.is-ask .ask-thread-feed { padding:24px 18px 32px; }
  body.is-ask .ask-thread-panel { scrollbar-gutter:auto; }
  body.is-ask .ask-message-user { margin-left:28px; margin-bottom:28px; }
  body.is-ask .ask-bubble-user { padding:11px 15px; border-radius:20px; }
  body.is-ask .ask-bubble-user p { font-size:15px; }
  body.is-ask .ask-message-assistant { margin-bottom:36px; }
  body.is-ask .ask-human-copy h4, body.is-ask .ask-human-fact-heading { font-size:17px; }
  body.is-ask .ask-composer-bar { padding:8px 12px max(12px,env(safe-area-inset-bottom)); }
  body.is-ask .ask-composer-form { gap:6px; padding:8px 10px 8px 16px; border-radius:26px; }
  body.is-ask .ask-composer-hint { font-size:10px; margin-top:6px; }
  body.is-ask .ask-empty-state h3 { font-size:26px; }
  body.is-ask .ask-empty-state p { font-size:13px; }
  body.is-ask .ask-empty-actions .filter-chip { font-size:11px; padding:7px 10px; }
  body.is-ask .ask-client-detail { padding:12px; }
  body.is-ask .ask-client-detail__head { flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce) {
  body.is-ask *, body.is-ask *::before, body.is-ask *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
@media (max-width:1080px) {
  body.is-ask .workspace { height:100dvh; min-height:620px; }
  body.is-ask .content-scroll { padding:16px; }
}
