.chat-input { align-items: flex-end; }
.chat-input textarea { flex: 1; min-width: 0; border: 0; resize: vertical; font: inherit; line-height: 1.6; background: transparent; min-height: 120px; }
.chat-input textarea:focus { outline: 2px solid #198477; outline-offset: 3px; }
.ai-consent { display: flex; align-items: flex-start; gap: 8px; margin: 0 22px 10px; font-size:16.25px; line-height: 1.6; }
.ai-consent input { flex: 0 0 auto; margin-top: 4px; }
.ai-disclaimer { color: #6d7279; font-size:15px; margin: 0 22px 18px; line-height: 1.6; }
.ai-result { white-space: normal; overflow-wrap: anywhere; line-height: 1.75; }
.ai-result > p:first-child { margin-top: 0; }
.ai-result > p:last-child { margin-bottom: 0; }
.ai-result h1, .ai-result h2, .ai-result h3, .ai-result h4, .ai-result h5, .ai-result h6 { margin: 16px 0 8px; line-height: 1.4; font-weight: 700; color: #25282d; }
.ai-result h1 { font-size:25px; }
.ai-result h2 { font-size:22.5px; }
.ai-result h3 { font-size:20px; }
.ai-result h4, .ai-result h5, .ai-result h6 { font-size:17.5px; }
.ai-result ul, .ai-result ol { margin: 8px 0; padding-left: 22px; }
.ai-result li { margin: 4px 0; }
.ai-result a { color: #4a7db5; text-decoration: underline; }
.ai-result code { background: #f2f4f6; padding: 2px 5px; border-radius: 4px; font-size:15.625px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ai-result pre.md-code { background: #f6f8f9; border: 1px solid #e2e6ea; border-radius: 6px; padding: 10px 12px; margin: 10px 0; overflow-x: auto; line-height: 1.5; white-space: pre; }
.ai-result pre.md-code code { background: transparent; padding: 0; font-size:15.625px; }
.ai-result blockquote { border-left: 3px solid #c6ccd2; margin: 10px 0; padding: 4px 12px; color: #55595f; background: #fafbfc; border-radius: 0 4px 4px 0; }
.ai-result hr { border: none; border-top: 1px solid #e2e6ea; margin: 14px 0; }
.ai-result .md-table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size:16.25px; }
.ai-result .md-table th, .ai-result .md-table td { border: 1px solid #e0e4e8; padding: 6px 10px; text-align: left; vertical-align: top; }
.ai-result .md-table thead th { background: #f2f4f6; font-weight: 600; }
.ai-result .md-table tbody tr:nth-child(even) { background: #fafbfc; }
.ai-result.error { color: #a12838; }
.ai-result[hidden] { display: none; }
.ai-result:not([hidden]) { min-height: 72px; }
.ai-badge.large { white-space: normal; overflow-wrap: anywhere; font-size:16.25px; }
.document-type-list button[aria-pressed="true"] { outline: 2px solid #198477; outline-offset: -2px; }
.ai-enterprise-result { margin: 18px 0; max-height: 360px; overflow-y: auto; padding: 12px 0; border-top: 1px solid #e4e7eb; }
.ai-result-meta { color: #6d7279; font-size:15px; margin-top: 12px; }
@media (max-width: 600px) { .chat-input { flex-wrap: wrap; } .chat-input textarea { flex-basis: 100%; } .ai-consent { margin-left: 16px; margin-right: 16px; } }
