.doc-chat{display:flex;flex-direction:column;gap:16px;max-width:1200px;margin:0 auto;min-width:0}.doc-chat .chat-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.doc-chat .chat-top h2{font-size:20px;margin:0 0 5px}.doc-chat .chat-top a{font-size:13px;color:#58718d;text-decoration:none}.doc-chat .chat-tools{display:flex;gap:8px;flex-wrap:wrap}.doc-chat .chat-tools button{font-size:12px;padding:9px 12px}.doc-chat .chat-progress{border:1px solid #dce5ef;border-radius:14px;background:white;padding:15px 18px}.doc-chat .progress-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:13px}.doc-chat .progress-heading strong{color:#17324f}.doc-chat .progress-track{height:7px;border-radius:9px;background:#eaf0f7;overflow:hidden;margin:11px 0}.doc-chat .progress-fill{height:100%;background:#0066f9;transition:width .5s}.doc-chat .progress-details{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#60758d;flex-wrap:wrap}.doc-chat .processing-error{font-size:12px;color:#92400e;background:#fff8e8;padding:10px 12px;border-radius:8px;margin:12px 0 0}.doc-chat .processing-meta{margin-top:10px;font-size:11px;color:#60758d}.doc-chat .chat-window{display:flex;flex-direction:column;height:clamp(480px,65vh,850px);background:#fff;border:1px solid #dce5ef;border-radius:16px;overflow:hidden;box-shadow:0 6px 22px #17324f05}.doc-chat .conversation-heading{padding:15px 22px;border-bottom:1px solid #eaf0f7;display:flex;align-items:center;gap:10px;font-size:14px}.doc-chat .assistant-icon{width:30px;height:30px;border-radius:10px;background:#eaf2ff;color:#0066f9;display:grid;place-items:center;font-weight:800;flex:none}.doc-chat .chat-messages{flex:1;min-height:0;overflow-y:auto;padding:24px;scroll-behavior:smooth;overscroll-behavior:contain}.doc-chat .chat-turn{display:flex;flex-direction:column;gap:20px;margin-bottom:28px}.doc-chat .chat-message{display:flex;gap:10px;max-width:88%;align-items:flex-start}.doc-chat .chat-message.user-message{align-self:flex-end;flex-direction:row-reverse}.doc-chat .message-content{min-width:0}.doc-chat .message-label{font-size:11px;color:#74869b;margin-bottom:6px;display:block}.doc-chat .user-message .message-label{text-align:right}.doc-chat .message-bubble{background:#f2f6fb;padding:14px 18px;border-radius:3px 15px 15px 15px;line-height:1.65;font-size:14px;overflow-wrap:anywhere}.doc-chat .user-message .message-bubble{background:#0066f9;color:white;border-radius:15px 3px 15px 15px;white-space:pre-wrap}.doc-chat .message-bubble p{margin:0 0 10px}.doc-chat .message-bubble p:last-child{margin-bottom:0}.doc-chat .message-bubble ul,.doc-chat .message-bubble ol{padding-left:22px;list-style:revert;margin:8px 0}.doc-chat .message-bubble li{display:list-item;padding:3px 0;border:0}.doc-chat .message-bubble h1,.doc-chat .message-bubble h2,.doc-chat .message-bubble h3{font-size:16px;margin:12px 0 6px}.doc-chat .message-bubble pre{white-space:pre-wrap}.doc-chat .message-bubble img{display:none}.doc-chat .message-error{background:#fff5ef;color:#8a3e15;border:1px solid #f5dacb}.doc-chat .message-foot{font-size:11px;color:#74869b;margin-top:8px}.doc-chat .chat-sources{font-size:12px;margin-top:10px}.doc-chat .chat-sources summary{cursor:pointer;color:#2265b6;font-weight:600}.doc-chat .chat-sources blockquote{margin:10px 0;padding:10px 12px;border-left:3px solid #9abdf5;background:#f7faff;line-height:1.5}.doc-chat .chat-sources p{margin-bottom:0}.doc-chat .chat-composer{padding:16px 22px;border-top:1px solid #eaf0f7;background:white;flex:none}.doc-chat .composer-box{display:flex;align-items:flex-end;gap:10px;background:#f7f9fc;border:1px solid #d8e3f0;border-radius:13px;padding:8px}.doc-chat .composer-box:focus-within{border-color:#0066f9;box-shadow:0 0 0 2px #0066f90d}.doc-chat .composer-box textarea{resize:none;min-height:56px;max-height:140px;border:0;background:transparent;box-shadow:none;outline:none;flex:1;min-width:0;padding:7px 9px;font:inherit;font-size:14px;color:#17324f}.doc-chat .composer-box button{min-height:40px;padding:10px 18px;border-radius:10px}.doc-chat button:disabled{opacity:.5;cursor:not-allowed}.doc-chat .composer-note{font-size:11px;color:#74869b;margin:9px 0 0}.doc-chat .chat-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:220px;text-align:center;color:#60758d}.doc-chat .chat-welcome h3{color:#17324f;font-size:20px;margin:14px 0 6px}.doc-chat .chat-welcome p{font-size:14px;max-width:410px;line-height:1.6}.doc-chat .typing{font-size:13px;color:#58718d;padding:12px}.doc-chat .chat-composer label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:700px){.doc-chat .chat-top{align-items:flex-start;flex-direction:column;gap:12px}.doc-chat .chat-window{height:65vh;min-height:450px}.doc-chat .chat-messages{padding:16px 12px}.doc-chat .chat-message{max-width:100%}.doc-chat .chat-composer{padding:12px}.doc-chat .progress-heading{align-items:flex-start}.doc-chat .chat-top h2{font-size:17px}.doc-chat .composer-box button{padding:10px 12px}}

@media(min-width:701px){.doc-chat{height:calc(100dvh - 174px);min-height:580px}.doc-chat .chat-top,.doc-chat .chat-progress{flex:none}.doc-chat .chat-window{height:auto;flex:1;min-height:300px}}
