#documentation-chat { position: fixed; right: 22px; bottom: 22px; z-index: 10000; display: flex; justify-content: flex-end; width: min(370px, calc(100% - 32px)); font: 14px/1.5 system-ui, sans-serif; color: #e7e9ee; color-scheme: dark; }
#documentation-chat [hidden] { display: none !important; }
#documentation-chat button { font: inherit; cursor: pointer; min-height: 44px; }
#documentation-chat button:focus-visible, #documentation-chat textarea:focus-visible { outline: 3px solid #58c5f1; outline-offset: 3px; }
#documentation-chat .doc-chat-launcher, #documentation-chat .doc-chat-send { border: 0; border-radius: 24px; background: #0577da; color: #fff; padding: 12px 20px; font-weight: 600; }
#documentation-chat .doc-chat-launcher { box-shadow: 0 5px 24px #0006; }
#documentation-chat .doc-chat-panel { box-sizing: border-box; width: 370px; max-width: 100%; height: 530px; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; background: #171b22; border: 1px solid #465063; border-radius: 18px; box-shadow: 0 10px 42px #0007; }
#documentation-chat .doc-chat-header { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 10px 14px; background: #1d2129; color: #fff; }
#documentation-chat .doc-chat-header strong { flex: 1; font-size: 16px; }
#documentation-chat .doc-chat-header button { background: transparent; color: #e7e9ee; border: 0; border-radius: 8px; min-width: 44px; padding: 0; font-size: 24px; }
#documentation-chat .doc-chat-messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
#documentation-chat .doc-chat-message { border-radius: 14px; padding: 10px 14px; max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; }
#documentation-chat .doc-chat-assistant { align-self: flex-start; background: #262d39; }
#documentation-chat .doc-chat-user { align-self: flex-end; background: #075cb0; color: #fff; }
#documentation-chat .doc-chat-status { flex: 0 0 auto; margin: 0; padding: 8px 16px; color: #bbc4d2; font-size: 12px; }
#documentation-chat .doc-chat-form { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 8px; border-top: 1px solid #465063; padding: 12px; }
#documentation-chat textarea { box-sizing: border-box; flex: 1; min-width: 0; max-height: 140px; resize: vertical; border: 1px solid #657185; border-radius: 10px; padding: 10px; background: #10141c; color: #e7e9ee; font: inherit; }
#documentation-chat .doc-chat-send { border-radius: 10px; padding: 10px 14px; }
#documentation-chat button:disabled { opacity: .5; cursor: default; }
#documentation-chat .doc-chat-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) { #documentation-chat { right: 16px; bottom: 16px; } #documentation-chat .doc-chat-panel { width: 100%; } }
