/* One conversation scroll area, one composer, optional history/source drawers. */
body[data-view=ai] #main{padding-top:18px!important}body[data-view=ai] [data-page=ai]>.page-heading{display:none}
#aiChat{margin:0;position:relative;border:0;background:transparent}
#aiChat .chat-heading{display:flex;align-items:center;gap:8px;padding:0 0 12px}#aiChat .chat-heading>div{margin-right:auto}#aiChat .chat-heading h2{font-size:19px;margin:0}#aiChat .chat-heading p{display:none}#aiChat .chat-heading button{padding:8px 12px;margin:0;font-size:12px;background:transparent}
#aiChat [data-provider-state]{font-size:12px;margin:0 0 8px;padding:0;border:0;background:transparent;color:var(--appearance-muted)}#aiChat [data-provider-state] button{font-size:11px;padding:3px 8px;margin:0 0 0 8px}
#aiChat .chat-layout{position:relative;min-width:0}#aiChat .chat-main{display:flex;flex-direction:column;height:calc(100dvh - 216px);min-height:380px;max-width:960px;margin:auto;position:relative}#aiChat .chat-main>[data-chat-context]{margin:0 0 7px;font-size:11px;color:var(--appearance-muted);overflow-wrap:anywhere}#aiChat [data-chat-context]:empty,#aiChat [data-chat-status]:empty{display:none}
#aiChat .conversation-stream{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;padding:0 12px 14px}#aiChat .chat-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;height:100%;text-align:center;padding:24px}#aiChat .chat-welcome>.app-icon{width:30px;height:30px;color:var(--appearance-muted)}#aiChat .chat-welcome h3{font-size:28px;margin:18px 0 8px;font-weight:550}#aiChat .chat-welcome p{font-size:14px;color:var(--appearance-muted);margin:0 0 18px}#aiChat .chat-example{border-radius:20px;background:transparent;font-size:12px;padding:8px 14px}#aiChat[data-empty-chat=false] .chat-welcome,#aiChat:has([data-chat-document]:not(:empty)) .chat-welcome{display:none}
#aiChat [data-chat-messages]{padding:0;margin:0;overflow:visible;max-height:none}#aiChat .chat-message{margin:18px 0;padding:14px 16px;border:0;background:transparent;overflow-wrap:anywhere;font-size:14px;line-height:1.7}#aiChat .chat-message>strong{font-size:12px;color:var(--appearance-muted)}#aiChat .chat-message p{white-space:pre-wrap;margin:7px 0}#aiChat .chat-user{background:var(--appearance-surface);border-radius:18px 18px 4px 18px;margin-left:16%}#aiChat .chat-message small{color:var(--appearance-muted);font-size:11px}#aiChat .chat-message blockquote{border-left:2px solid var(--appearance-line);margin:12px 0;padding:0 12px;white-space:pre-wrap}#aiChat .chat-message button{font-size:11px;padding:5px 9px}#aiChat [data-chat-document]:empty{display:none}#aiChat [data-chat-document]{margin:12px 0}
#aiChat .ai-composer{flex:none;border:1px solid var(--appearance-line);border-radius:24px;background:var(--appearance-surface);padding:12px 16px;box-shadow:0 5px 24px #0000000a}#aiChat .ai-composer:focus-within{border-color:var(--appearance-muted)}#aiChat .ai-composer.dragging{outline:2px solid var(--appearance-accent);outline-offset:4px}#aiChat [data-chat-form]{display:block;margin:0;padding:0;border:0;background:transparent}#aiChat [data-chat-form]>label:first-of-type{font-size:0;margin:0;display:block}#aiChat [data-chat-form] textarea{display:block;width:100%;max-width:none;min-height:72px;max-height:160px;padding:10px 2px;border:0;outline:0;background:transparent;box-shadow:none;font-size:15px;line-height:1.5;resize:none;margin:0}
#aiChat .composer-toolbar{display:flex;align-items:center;gap:6px;margin:4px 0 0}#aiChat .composer-toolbar button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:8px;margin:0;border:0;border-radius:50%;background:transparent;flex:none}#aiChat .composer-toolbar button:hover{background:var(--appearance-soft)}#aiChat .composer-toolbar .composer-consent{font-size:11px;display:flex;align-items:center;gap:5px;margin:0 auto 0 5px;color:var(--appearance-muted)}#aiChat .composer-consent input{width:14px;height:14px;margin:0}#aiChat .composer-toolbar [data-chat-send]{background:var(--appearance-ink);color:var(--appearance-canvas)}#aiChat .composer-toolbar [data-chat-send]:disabled{opacity:.35}#aiChat [data-composer-voice][aria-pressed=true]{color:#d96060;background:var(--appearance-soft)}
#aiChat [data-selection]{display:flex;gap:7px;overflow:auto;max-height:86px;padding:0;margin:0;flex-wrap:nowrap}#aiChat [data-selection]:empty{display:none}#aiChat .chat-source{display:flex;align-items:center;gap:8px;max-width:260px;min-width:150px;flex:none;border:1px solid var(--appearance-line);border-radius:12px;padding:9px 10px;font-size:12px;background:var(--appearance-soft);margin-bottom:6px}#aiChat .chat-source>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#aiChat .chat-source button{padding:0;margin:0 0 0 auto;display:flex;border:0;background:transparent;min-width:18px}#aiChat .chat-source button svg{width:14px;height:14px}#aiChat .composer-upload-status{padding:4px 0;margin:0 0 5px;border:0;background:transparent;font-size:11px;color:var(--appearance-muted)}
#aiChat [data-chat-status]{margin:7px 12px 0;font-size:12px;flex:none;max-height:65px;overflow:auto;line-height:1.5}#aiChat [data-chat-retry]{align-self:flex-start;font-size:12px;padding:7px 12px;margin:6px 0}#aiChat [data-reconcile]{font-size:12px;padding:8px}
#aiChat .chat-sidebar{display:none;position:absolute;inset:0 auto 0 0;width:min(350px,100%);z-index:5;padding:18px;background:var(--appearance-surface);border:1px solid var(--appearance-line);border-radius:16px;box-shadow:6px 8px 30px #0003;overflow:auto}#aiChat:has([data-history-toggle][aria-expanded=true]) .chat-sidebar{display:block}#aiChat .chat-sidebar h3{font-size:15px;margin:0 0 12px}#aiChat .chat-sidebar form{margin:0 0 12px;padding:0;background:transparent;display:block}#aiChat .chat-sidebar label{font-size:12px}#aiChat .chat-sidebar button{font-size:12px;margin:5px 0;padding:7px 10px}#aiChat [data-chat-list]{display:grid;gap:4px}#aiChat [data-chat-list] button{text-align:left;overflow-wrap:anywhere;white-space:normal}.chat-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}#aiChat [data-document-history]{margin:12px 0;padding:10px 0;border-top:1px solid var(--appearance-line);font-size:12px}
#aiChat [data-attachments]{display:none}#aiChat [data-attachments][open]{display:block;position:absolute;inset:0 0 0 auto;width:min(560px,100%);z-index:6;background:var(--appearance-surface);padding:18px;border:1px solid var(--appearance-line);border-radius:16px;box-shadow:-6px 8px 30px #0003;overflow:auto}#aiChat [data-attachments]>summary{font-size:15px;font-weight:600;display:inline-block;pointer-events:none}#aiChat [data-close-sources]{float:right;margin:0;padding:5px 10px;font-size:12px}#aiChat [data-attachments]>p{font-size:12px;color:var(--appearance-muted);clear:both;padding-top:12px}#aiChat [data-attachments] details{padding:12px 0;margin:0;border:0;border-top:1px solid var(--appearance-line)}#aiChat [data-attachments] form{padding:10px 0;margin:0;font-size:12px}#aiChat [data-attachments] button{font-size:12px}#aiChat [data-library-results] article,#aiChat [data-archive-results] article{padding:8px 0;border-bottom:1px solid var(--appearance-line);overflow-wrap:anywhere}
#aiChat [data-chat-bulk]>.section-heading,#aiChat [data-chat-bulk]>p:not([data-note]):not([data-bulk-rule]),#aiChat [data-chat-bulk] .bulk-summary{display:none}#aiChat [data-chat-bulk] .bulk-drop{padding:12px;min-height:0}#aiChat [data-chat-bulk] .bulk-drop>strong,#aiChat [data-chat-bulk] .bulk-drop>span{display:none}#aiChat [data-chat-bulk] label:has([data-consent]),#aiChat [data-chat-bulk] label:has([data-find]),#aiChat [data-chat-bulk] label:has([data-filter]){display:none}#aiChat [data-chat-bulk] .bulk-toolbar{gap:5px}#aiChat [data-chat-bulk] .bulk-rows article{display:flex;flex-wrap:wrap;padding:9px 0;gap:5px;font-size:11px}#aiChat [data-chat-bulk] .bulk-rows article>div{flex:1 1 100%}#aiChat [data-chat-bulk] .bulk-rows select{max-width:100%;font-size:11px}
#aiChat [data-dictation]{display:none}#aiChat [data-dictation][open]{display:block;flex:none;max-height:190px;overflow:auto;padding:10px 14px;border:1px solid var(--appearance-line);border-radius:16px;margin:0 0 8px;background:var(--appearance-surface);font-size:12px}#aiChat [data-dictation]>summary,#aiChat [data-dictation-host]>h3,#aiChat [data-dictation-host]>p:first-of-type,#aiChat [data-dictation-host] [data-record],#aiChat [data-dictation-host] [data-stop],#aiChat [data-dictation-host] [data-mic-test]{display:none}#aiChat [data-close-voice]{float:right;border:0;background:transparent;padding:2px;margin:0}#aiChat [data-dictation-host] label{font-size:11px;margin:5px 0}#aiChat [data-dictation-host] button{font-size:11px;padding:5px 8px;margin:3px}#aiChat [data-dictation-host] meter{width:calc(100% - 32px);height:10px}#aiChat [data-voice-status]{font-size:12px;margin:5px 0}
#aiSettings{padding-top:16px}#aiSettings details{max-width:760px}.ai-work-requests{padding:16px 20px;border:1px solid var(--appearance-line);border-radius:12px;margin-top:20px}
@media(max-width:760px){#aiChat .chat-main{height:calc(100dvh - 205px);min-height:340px}#aiChat .chat-heading h2{font-size:16px}#aiChat .chat-heading button{font-size:11px;padding:6px}#aiChat .chat-welcome{padding:15px;min-height:160px}#aiChat .chat-welcome h3{font-size:23px}#aiChat .conversation-stream{padding:0 3px 10px}#aiChat .ai-composer{padding:9px 12px;border-radius:20px}#aiChat .composer-consent{font-size:10px}#aiChat .chat-user{margin-left:8%}#aiChat [data-provider-state]{font-size:11px}#aiChat [data-chat-form] textarea{font-size:16px}}

#aiChat .composer-file-policy{font-size:10px;color:var(--appearance-muted);margin:6px 12px 0;line-height:1.5;flex:none}
