/* ArcInsight Lite chat, shared by /arcinsight and the ArcScout tab (arcinsight-chat.js). */
.ask-log { display: flex; flex-direction: column; gap: 16px; }
.ask-log:empty { display: none; }
.ask-log:not(:empty) { margin-bottom: 20px; }
.ask-msg { max-width: 100%; overflow-wrap: anywhere; font-size: 15px; line-height: 1.65; color: var(--gray-700); }
.ask-msg.user { align-self: flex-end; max-width: 85%; background: var(--charcoal); color: var(--white); border-radius: 14px 14px 4px 14px; padding: 10px 14px; white-space: pre-wrap; }
.ask-msg.bot { align-self: stretch; }
.ask-msg.bot p { margin: 0 0 8px; }
.ask-msg.bot ul { margin: 0 0 8px; padding-left: 20px; list-style: disc; }
.ask-msg.bot li { margin: 0 0 4px; }
.ask-msg.error { color: var(--red-dark); background: var(--red-light); border-radius: var(--radius-md); padding: 10px 14px; }
.ask-msg.loading { color: var(--gray-500); font-style: italic; }
.ask-cite { font-size: 11px; font-weight: 700; color: var(--red); text-decoration: none; margin-left: 1px; }
.ask-cite:hover, .ask-cite:focus { text-decoration: underline; }
.ask-sources { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ask-src { border: 1px solid var(--gray-300); border-radius: var(--radius-md); padding: 12px 14px; background: var(--gray-50); min-width: 0; }
.ask-src:target { border-color: var(--red); }
.ask-src-type { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 4px; }
.ask-src-title { display: block; font-weight: 700; color: var(--charcoal); text-decoration: none; line-height: 1.4; overflow-wrap: anywhere; }
a.ask-src-title:hover, a.ask-src-title:focus { color: var(--red); text-decoration: underline; }
.ask-src-org, .ask-src-meta { font-size: 13px; color: var(--gray-500); margin-top: 3px; overflow-wrap: anywhere; }
.ask-src-meta { color: var(--gray-700); }
.ask-unlock { margin-top: 4px; }
.ask-examples-label { font-size: 13px; font-weight: 600; color: var(--gray-500); margin: 0 0 8px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ask-chip { font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--charcoal); background: var(--gray-50); border: 1px solid var(--gray-300); border-radius: 999px; padding: 8px 14px; cursor: pointer; text-align: left; max-width: 100%; white-space: normal; }
.ask-chip:hover, .ask-chip:focus-visible { border-color: var(--red); color: var(--red); }
.ask-form { display: flex; gap: 10px; align-items: flex-end; }
.ask-form textarea { flex: 1; min-width: 0; resize: vertical; min-height: 48px; max-height: 200px; font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--charcoal); border: 1.5px solid var(--gray-300); border-radius: var(--radius-md); padding: 11px 14px; }
.ask-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.12); }
.ask-form .btn { height: 48px; }
.ask-form .btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.ask-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--gray-500); }
.ask-reset { background: none; border: 0; padding: 0; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--gray-500); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ask-reset:hover, .ask-reset:focus-visible { color: var(--red); }
.ask-note { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin: 16px 0 0; }
@media (max-width: 480px) {
  .ask-form { flex-direction: column; align-items: stretch; }
  .ask-form .btn { justify-content: center; }
  .ask-msg.user { max-width: 92%; }
}
