.hb-widget{--hb-primary: #1a56db;--hb-primary-dark: #1e429f;--hb-primary-light: #e1effe;--hb-text: #111827;--hb-text-muted: #6b7280;--hb-border: #e5e7eb;--hb-bg: #ffffff;--hb-bg-secondary: #f9fafb;--hb-success: #059669;--hb-error: #dc2626;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--hb-text);background:var(--hb-bg);border:1px solid var(--hb-border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;height:100%;width:100%;max-width:480px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.hb-tabs{display:flex;border-bottom:1px solid var(--hb-border);background:var(--hb-bg-secondary)}.hb-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:12px;border:none;background:transparent;color:var(--hb-text-muted);font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.hb-tab:hover{color:var(--hb-text);background:#00000008}.hb-tab.active{color:var(--hb-primary);background:var(--hb-bg);border-bottom:2px solid var(--hb-primary);margin-bottom:-1px}.hb-tab svg{width:18px;height:18px}.hb-content{flex:1;overflow-y:auto;padding:0}.hb-search-tab{padding:16px}.hb-search-box{display:flex;gap:8px}.hb-search-input-wrapper{flex:1;position:relative;display:flex;align-items:center}.hb-search-icon{position:absolute;left:12px;width:18px;height:18px;color:var(--hb-text-muted);pointer-events:none}.hb-search-input{width:100%;padding:10px 36px;border:1px solid var(--hb-border);border-radius:8px;font-size:14px;transition:border-color .2s,box-shadow .2s}.hb-search-input:focus{outline:none;border-color:var(--hb-primary);box-shadow:0 0 0 3px var(--hb-primary-light)}.hb-search-spinner{position:absolute;right:12px;width:18px;height:18px;border:2px solid var(--hb-border);border-top-color:var(--hb-primary);border-radius:50%;animation:hb-spin .8s linear infinite}@keyframes hb-spin{to{transform:rotate(360deg)}}.hb-search-button{padding:10px 16px;background:var(--hb-primary);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.hb-search-button:hover:not(:disabled){background:var(--hb-primary-dark)}.hb-search-button:disabled{opacity:.5;cursor:not-allowed}.hb-results{margin-top:16px}.hb-results-count{font-size:12px;color:var(--hb-text-muted);margin-bottom:12px}.hb-result-card{background:var(--hb-bg);border:1px solid var(--hb-border);border-radius:8px;padding:12px;margin-bottom:8px}.hb-result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.hb-result-chapter{font-size:12px;font-weight:600;color:var(--hb-primary)}.hb-result-page{font-size:11px;color:var(--hb-text-muted)}.hb-result-section{font-size:13px;font-weight:500;margin-bottom:8px}.hb-result-content{font-size:13px;color:var(--hb-text-muted);margin:0}.hb-result-footer{margin-top:8px;padding-top:8px;border-top:1px solid var(--hb-border)}.hb-result-score{font-size:11px;color:var(--hb-success)}.hb-chat{display:flex;flex-direction:column;height:100%}.hb-chat-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--hb-border)}.hb-chat-header h3{margin:0;font-size:14px;font-weight:600}.hb-chat-clear{padding:4px 8px;font-size:12px;color:var(--hb-text-muted);background:transparent;border:1px solid var(--hb-border);border-radius:4px;cursor:pointer}.hb-chat-clear:hover{background:var(--hb-bg-secondary)}.hb-chat-messages{flex:1;overflow-y:auto;padding:16px}.hb-chat-welcome{text-align:center;padding:20px 0}.hb-chat-welcome p{color:var(--hb-text-muted);margin-bottom:16px}.hb-suggestions{text-align:left}.hb-suggestions-label{font-size:12px;color:var(--hb-text-muted);margin-bottom:8px}.hb-suggestion{display:block;width:100%;padding:10px 12px;margin-bottom:8px;text-align:left;background:var(--hb-bg-secondary);border:1px solid var(--hb-border);border-radius:8px;font-size:13px;cursor:pointer;transition:all .2s}.hb-suggestion:hover{background:var(--hb-primary-light);border-color:var(--hb-primary)}.hb-message{margin-bottom:16px;max-width:85%}.hb-message-user{margin-left:auto}.hb-message-user .hb-message-content{background:var(--hb-primary);color:#fff;border-radius:12px 12px 0}.hb-message-assistant .hb-message-content{background:var(--hb-bg-secondary);border-radius:12px 12px 12px 0}.hb-message-content{padding:10px 14px;white-space:pre-wrap;word-wrap:break-word}.hb-message-loading .hb-message-content{padding:14px}.hb-typing-indicator{display:flex;gap:4px}.hb-typing-indicator span{width:8px;height:8px;background:var(--hb-text-muted);border-radius:50%;animation:hb-bounce 1.4s infinite ease-in-out both}.hb-typing-indicator span:nth-child(1){animation-delay:-.32s}.hb-typing-indicator span:nth-child(2){animation-delay:-.16s}@keyframes hb-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.hb-citations{margin-top:8px}.hb-citations-toggle{display:flex;align-items:center;gap:4px;padding:4px 8px;font-size:12px;color:var(--hb-text-muted);background:transparent;border:none;cursor:pointer}.hb-citations-toggle:hover{color:var(--hb-primary)}.hb-citations-arrow{width:14px;height:14px;transition:transform .2s}.hb-citations-arrow.expanded{transform:rotate(180deg)}.hb-citations-list{margin-top:8px;padding:8px;background:var(--hb-bg);border:1px solid var(--hb-border);border-radius:6px}.hb-citation-item{padding:8px 0;border-bottom:1px solid var(--hb-border)}.hb-citation-item:last-child{border-bottom:none}.hb-citation-header{display:flex;gap:8px;margin-bottom:4px}.hb-citation-page{font-size:11px;font-weight:600;color:var(--hb-primary)}.hb-citation-section{font-size:11px;color:var(--hb-text-muted)}.hb-citation-excerpt{font-size:12px;color:var(--hb-text-muted);margin:0}.hb-follow-up{padding:8px 16px;display:flex;flex-wrap:wrap;gap:8px}.hb-follow-up-btn{padding:6px 10px;font-size:12px;color:var(--hb-primary);background:var(--hb-primary-light);border:none;border-radius:16px;cursor:pointer;transition:all .2s}.hb-follow-up-btn:hover:not(:disabled){background:var(--hb-primary);color:#fff}.hb-follow-up-btn:disabled{opacity:.5;cursor:not-allowed}.hb-chat-input{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--hb-border);background:var(--hb-bg)}.hb-chat-input input{flex:1;padding:10px 14px;border:1px solid var(--hb-border);border-radius:20px;font-size:14px}.hb-chat-input input:focus{outline:none;border-color:var(--hb-primary)}.hb-chat-input button{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--hb-primary);color:#fff;border:none;border-radius:50%;cursor:pointer;transition:background .2s}.hb-chat-input button:hover:not(:disabled){background:var(--hb-primary-dark)}.hb-chat-input button:disabled{opacity:.5;cursor:not-allowed}.hb-chat-input button svg{width:18px;height:18px}.hb-error,.hb-chat-error{padding:10px 14px;margin:8px 0;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:var(--hb-error);font-size:13px}.hb-sql-section,.hb-data-section{margin-top:8px}.hb-sql-toggle{display:flex;align-items:center;gap:4px;padding:4px 8px;font-size:12px;color:var(--hb-text-muted);background:transparent;border:none;cursor:pointer}.hb-sql-toggle:hover{color:var(--hb-primary)}.hb-sql-code{margin-top:6px;padding:10px;background:#1e293b;color:#e2e8f0;border-radius:6px;font-family:Consolas,Monaco,Courier New,monospace;font-size:12px;line-height:1.5;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word}.hb-data-table{margin-top:6px}.hb-data-summary{font-size:11px;color:var(--hb-text-muted);margin-bottom:6px}.hb-data-empty{padding:12px;text-align:center;color:var(--hb-text-muted);font-size:13px}.hb-table-scroll{overflow-x:auto;max-height:250px;overflow-y:auto;border:1px solid var(--hb-border);border-radius:6px}.hb-table-scroll table{width:100%;border-collapse:collapse;font-size:12px}.hb-table-scroll th{position:sticky;top:0;background:var(--hb-bg-secondary);padding:6px 10px;text-align:left;font-weight:600;font-size:11px;color:var(--hb-text-muted);border-bottom:1px solid var(--hb-border);white-space:nowrap}.hb-table-scroll td{padding:5px 10px;border-bottom:1px solid var(--hb-border);white-space:nowrap}.hb-table-scroll tr:last-child td{border-bottom:none}.hb-table-scroll tr:hover td{background:var(--hb-bg-secondary)}.hb-cell-number{text-align:right;font-variant-numeric:tabular-nums}.hb-footer{padding:8px;text-align:center;font-size:11px;color:var(--hb-text-muted);background:var(--hb-bg-secondary);border-top:1px solid var(--hb-border)}
