.chat-tools { display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding:8px 12px; flex-shrink:0; border-bottom:1px solid #8884; font:12px system-ui; }
.chat-tools[hidden] { display:none !important; }
.chat-tools button,.chat-tools select,.chat-tools-dialog button,.chat-tools-dialog input,.chat-tools-dialog select { color:inherit; background:transparent; border:1px solid #8886; border-radius:6px; padding:6px 8px; font:inherit; }
.chat-tools button,.chat-tools-dialog button { cursor:pointer; }
.chat-tools label { display:flex; align-items:center; gap:4px; }
.chat-tools [hidden],.chat-tools-dialog [hidden],.history-pin-only { display:none !important; }
.chat-tools-notice { max-width:100%; color:inherit; }
.chat-tools-dialog { color:inherit; background:var(--vscode-editor-background, #171b29); color:var(--vscode-editor-foreground, #eee); border:1px solid #8888; border-radius:12px; width:min(680px,90vw); max-height:85vh; overflow:auto; padding:20px; font:14px system-ui; }
.chat-tools-dialog::backdrop { background:#0009; }
.chat-tools-dialog h2 { margin:0 0 12px; font-size:18px; }
.chat-search-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin-top:16px; }
.chat-search-form label,.chat-admin-user label { display:flex; flex-direction:column; gap:6px; }
.chat-tools-dialog option { background:var(--vscode-editor-background, #171b29); color:var(--vscode-editor-foreground, #eee); }
.chat-search-results { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.chat-search-results button { text-align:left; white-space:pre-wrap; overflow-wrap:anywhere; }
.chat-admin-user { display:flex; gap:8px; flex-wrap:wrap; border-top:1px solid #8884; padding:14px 0; }
.chat-admin-user strong { flex-basis:100%; }
.message-text { white-space:normal; }
.message-text p { margin:0 0 .65em; white-space:normal; line-height:1.5; }
.message-text > :first-child { margin-top:0; }
.message-text > :last-child { margin-bottom:0; }
.message-text strong { display:inline; margin:0; font-size:inherit; }
.message-text :is(h1,h2,h3,h4,h5,h6) { margin:.85em 0 .4em; line-height:1.3; font-weight:700; }
.message-text h1 { font-size:1.45em; } .message-text h2 { font-size:1.25em; }
.message-text h3 { font-size:1.1em; } .message-text :is(h4,h5,h6) { font-size:1em; }
.message-text :is(ul,ol) { margin:.5em 0; padding-left:1.6em; }
.message-text ul { list-style:disc; }
.message-text ul ul { list-style:circle; }
.message-text ol { list-style:decimal; }
.message-text li { margin:.25em 0; }
.message-text li > p { margin:.25em 0; }
.message-text blockquote { margin:.65em 0; padding:.2em .75em; border-left:3px solid #8888; background:#8881; }
.message-text blockquote > :last-child { margin-bottom:0; }
.message-text hr { margin:.85em 0; border:0; border-top:1px solid #8886; }
.message-text a { color:var(--vscode-textLink-foreground, var(--accent-1, #a78bfa)); overflow-wrap:anywhere; }
.message-text .markdown-table { max-width:100%; overflow-x:auto; margin:.65em 0; }
.message-text table { border-collapse:collapse; font-size:inherit; }
.message-text :is(th,td) { border:1px solid #8886; padding:.35em .65em; }
.message-text th { background:#8882; }
#btn-emoji { font-size:24px; }
.code-block { min-width:0; max-width:100%; margin:8px 0; background:#10141e; color:#e7eaf0; border:1px solid #8884; border-radius:7px; overflow:hidden; text-align:left; }
.code-heading { display:flex; justify-content:space-between; gap:16px; padding:6px 10px; background:#ffffff0a; font:12px system-ui; }
.code-heading button { color:inherit; background:none; border:1px solid #8886; border-radius:4px; cursor:pointer; }
.code-block pre { overflow:auto; max-width:100%; padding:10px; margin:0; white-space:pre; tab-size:2; }
.code-block code { font:12px/1.6 Consolas,monospace; background:none; }
code { font-family:Consolas,monospace; background:#8882; border-radius:3px; }
.syntax-keyword { color:#c792ea; } .syntax-string { color:#c3e88d; } .syntax-number { color:#f78c6c; } .syntax-comment { color:#8996a9; }
[data-direct-user] { cursor:pointer; } [data-direct-user]:hover { text-decoration:underline; }
.message-file { display:block; padding:12px; overflow-wrap:anywhere; }
.message-highlight { outline:2px solid #8b5cf6; outline-offset:-2px; }
