:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#f5f5f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#f5f5f5}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{max-width:960px;margin:0 auto;padding:1rem 1.25rem 2rem;text-align:left;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji"}.container h1{margin:0 0 .25rem}.container p{margin:0 0 1rem;color:#555}.section h2{margin:0 0 .5rem}input[type=text],input:not([type]),select{border:1px solid #ddd;border-radius:6px;padding:8px 10px;min-width:280px}button{border:none;background:#012060;color:#fff;padding:12px 24px;border-radius:24px;cursor:pointer;font-size:14px;font-weight:500;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 8px #01206033;font-family:inherit}button:hover:not(:disabled){background:#023080;box-shadow:0 4px 12px #0120604d;transform:translateY(-1px)}button:active{transform:translateY(0);box-shadow:0 2px 6px #01206033}button:disabled{background:#dadce0;color:#5f6368;cursor:not-allowed;box-shadow:none;transform:none}label{display:grid;gap:6px}.dashboard-container{max-width:1100px;margin:0 auto;padding:1rem 1.25rem 2rem}@media (min-width: 1100px){body.history-open .dashboard-container{margin-left:320px}}.topbar{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;align-items:center;gap:16px;margin:0 0 16px;padding:10px 16px;background:#fff;border:1px solid #ececec;border-radius:20px;box-shadow:0 6px 14px #0000000f}.brand{display:flex;align-items:center;gap:10px}.hamburger-button{display:inline-flex;flex-shrink:0;flex-grow:0;width:36px;height:36px;border-radius:10px;background:#f6f8fa;border:1px solid #e5e7eb;align-items:center;justify-content:center;padding:0}.hamburger-button .hamburger-icon{width:22px;height:22px;color:#1f2328}.logo{width:36px;height:36px}.brand-title{font-size:20px;font-weight:700}.brand-status{color:#0a0;font-size:12px;font-weight:600;padding:4px 8px;border-radius:12px;background:#0aa0001a;border:1px solid rgba(10,160,0,.2);transition:all .3s ease;text-transform:uppercase;letter-spacing:.5px;min-width:80px;text-align:center}.brand-status.offline{color:#666;background:#6666661a;border-color:#6663}.brand-status.online{color:#4caf50;background:#4caf501a;border-color:#4caf5033;animation:pulse 2s infinite}@keyframes pulse{0%{box-shadow:0 0 #4caf5066}70%{box-shadow:0 0 0 6px #4caf5000}to{box-shadow:0 0 #4caf5000}}.selectors{display:flex;gap:12px;justify-content:center}.selector-label{font-size:12px;color:#666;margin-bottom:4px}.top-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center;min-width:0}.single-col{display:grid;gap:12px}.panel{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:16px;box-shadow:0 1px 2px #0000000a}.section-type .section-title{font-weight:600;margin-bottom:8px}.data-selection{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:16px;box-shadow:0 1px 2px #0000000a;margin-bottom:16px}.knowledgebase-admin-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.knowledgebase-section{flex:1}.data-selection .section-title{font-weight:600;margin-bottom:8px;color:#0a0;font-size:14px}.database-select{width:100%;max-width:300px;border:1px solid #ddd;border-radius:8px;padding:8px 12px;font-size:14px;background:#f8f9fa;color:#202124;outline:none;transition:all .2s ease}.database-select:focus{border-color:#012060;box-shadow:0 0 0 2px #01206033}.database-select:hover{border-color:#012060}.admin-button-section{display:flex;justify-content:flex-end;align-items:center;padding:0;margin:0;border:none;height:100%}.admin-management-button{background:#012060;color:#fff;border:none;border-radius:8px;padding:12px 24px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 8px #0120604d;display:flex;align-items:center;gap:8px}.admin-management-button:hover{background:#023080;transform:translateY(-1px);box-shadow:0 4px 12px #01206066}.admin-management-button:active{transform:translateY(0)}.admin-management-link{color:#012060;background:none;border:none;border-radius:4px;padding:8px 12px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:8px;text-decoration:underline;text-decoration-color:#012060;text-underline-offset:3px}.admin-management-link:hover{color:#023080;background:#0120600d;text-decoration-color:#023080;text-decoration:underline}.admin-management-link:active{color:#012060}.admin-management-link:visited{color:#012060;text-decoration-color:#012060}.history-toggle{position:fixed;top:12px;left:16px;width:40px;height:40px;border-radius:12px;background:#f6f8fa;border:1px solid #e5e7eb;display:inline-flex;align-items:center;justify-content:center;padding:0;color:#6b7280;z-index:1200;box-shadow:0 6px 14px #0000000f}.history-toggle svg{width:22px;height:22px}} */ .admin-management{max-width:1100px;margin:0 auto;padding:1rem 1.25rem 2rem}.admin-header{display:flex;align-items:center;gap:16px;margin-bottom:24px;padding:16px;background:#fff;border:1px solid #ececec;border-radius:20px;box-shadow:0 6px 14px #0000000f}.back-button{background:#f8f9fa;color:#495057;border:1px solid #dee2e6;border-radius:8px;padding:8px 16px;font-size:14px;cursor:pointer;transition:all .2s ease}.back-button:hover{background:#e9ecef;border-color:#adb5bd}.admin-title{margin:0;font-size:24px;font-weight:700;color:#212529}.admin-tabs{display:flex;gap:8px;margin-bottom:24px}.tab-button{background:#f8f9fa;color:#495057;border:1px solid #dee2e6;border-radius:8px;padding:12px 20px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.tab-button:hover{background:#e9ecef;border-color:#adb5bd}.tab-button.active{background:#012060;color:#fff;border-color:#012060}.tab-content{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:24px;box-shadow:0 1px 2px #0000000a}.radio-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin-bottom:12px}.radio-item{display:flex;gap:8px;align-items:center}.question-input{width:100%;border:1px solid #ddd;border-radius:8px;padding:8px 10px}.clean-search-bar{width:100%;border:2px solid #e8eaed;border-radius:24px;padding:16px 20px;font-size:16px;background:#fff;outline:none;transition:all .3s cubic-bezier(.4,0,.2,1);font-family:inherit;box-shadow:0 2px 8px #0000000d;color:#202124}.clean-search-bar:focus{border-color:#012060;box-shadow:0 4px 16px #01206026,0 2px 8px #0000001a;transform:translateY(-1px)}.clean-search-bar:hover:not(:focus){border-color:#dadce0;box-shadow:0 3px 12px #00000014}.clean-search-bar:disabled{background:#f8f9fa;border-color:#e8eaed;color:#5f6368;cursor:not-allowed;box-shadow:none;transform:none}.clean-search-bar.multiline{resize:none;min-height:140px;line-height:1.6;border-radius:16px;padding:20px}.clean-search-bar::placeholder{color:#9aa0a6;font-weight:400}.error-text{color:#d33;margin-top:8px}.answer-title{font-weight:600;margin-top:12px;margin-bottom:16px;font-size:1.2em;color:#1a1a1a}.answer-block{margin-top:20px;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.answer-pre{white-space:pre-wrap;background:#f6f8fa;padding:16px;border-radius:8px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:14px;border:1px solid #e1e4e8}.right-title{font-weight:700;margin-bottom:8px}.right-subtitle{margin-top:12px;font-weight:600}.simple-list{margin:0;padding-left:18px}.role-badges{display:flex;gap:8px;flex-wrap:wrap}.badge{background:#f0f0f0;border:1px solid #e0e0e0;border-radius:999px;padding:4px 10px;font-size:12px}.state-display{margin-top:4px}.question-block{margin-bottom:24px}.question-label{font-size:16px;font-weight:600;color:#202124;margin-bottom:12px}.panel{background:#fff;border:1px solid #e8eaed;border-radius:16px;padding:24px;box-shadow:0 2px 12px #00000014}.search-shell{display:grid;gap:0;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px #0000000f}.search-row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #eceff3;border-radius:14px 14px 0 0;padding:12px 12px 12px 14px}.search-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:#fafbff;border:1px solid #f1f3f6}.search-input{border:none;outline:none;font-size:16px;padding:10px 6px;background:transparent;width:100%;min-width:0;flex:1 1 auto;color:#1f2328}.search-input::placeholder{color:#9aa0a6}.submit-button{border:none;background:#ff5e18;color:#fff;width:44px;height:36px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 6px 16px #ff5e1859}.db-select{border:1px solid #e6e9ef;background:#fafbff;color:#1f2328;height:36px;border-radius:10px;padding:0 10px;font-size:14px;min-width:120px;max-width:160px}.submit-button:disabled{opacity:.6;box-shadow:none}.arrow{font-size:18px;line-height:1;transform:translateY(-1px)}.segmented-tabs{display:inline-flex;gap:6px;background:#fff;border:1px solid #eceff3;border-top:none;border-right:none;border-radius:0 0 0 14px;padding:6px;flex:1}.tab{position:relative;border:1px solid #f1f3f6;background:#fff;color:#1f2328;border-radius:8px;padding:6px 12px;font-size:13px;font-weight:500;transition:all .2s ease;cursor:pointer}.tab.active{background:#012060;border-color:#012060;color:#fff;box-shadow:0 2px 8px #01206033}.tab:hover:not(.active){background:#f8f9fa;border-color:#dadce0}.tab-badge{margin-left:8px;font-size:12px;color:#6e7781;background:#f2f4f8;border:1px dashed #e1e4ea;padding:2px 6px;border-radius:999px}.segmented-toolbar{display:flex;align-items:center;gap:10px}.auto-start-message{background:linear-gradient(135deg,#012060,#023080);color:#fff;padding:12px 16px;border-radius:12px;margin-bottom:16px;font-size:14px;font-weight:500;display:flex;align-items:center;gap:8px;box-shadow:0 4px 12px #0120604d;animation:slideInDown .5s ease-out}.auto-start-icon{font-size:16px;animation:pulse 2s infinite}@keyframes slideInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.search-shell{position:relative}.search-shell .auto-start-message{position:absolute;top:-60px;left:0;right:0;z-index:10}.loading-stage{background:linear-gradient(135deg,#012060,#023080);color:#fff;padding:16px 20px;border-radius:16px;margin:16px 0;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 6px 20px #01206066;animation:slideInUp .6s ease-out,loadingPulse 2s ease-in-out infinite;position:relative;overflow:hidden}.loading-stage:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);animation:shimmer 2s infinite}.retrieving-icon{font-size:20px;animation:retrieving 2s ease-in-out infinite;display:inline-block}.retrieving-dots,.thinking-dots{display:inline-flex;gap:2px;margin:0 4px}.dot{font-size:24px;font-weight:700;animation:dotPulse 1.4s ease-in-out infinite;opacity:.7}.dot:nth-child(1){animation-delay:0s}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}.thinking-indicator{font-size:20px;animation:thinking 1.5s ease-in-out infinite;display:inline-block}@keyframes shimmer{0%{left:-100%}to{left:100%}}@keyframes thinking{0%,to{transform:rotate(0) scale(1)}25%{transform:rotate(-10deg) scale(1.1)}75%{transform:rotate(10deg) scale(1.1)}}@keyframes loadingPulse{0%,to{box-shadow:0 6px 20px #667eea66}50%{box-shadow:0 8px 25px #667eea99}}@keyframes dotPulse{0%,to{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.2)}}@keyframes retrieving{0%,to{transform:scale(1) rotate(0)}25%{transform:scale(1.1) rotate(-5deg)}75%{transform:scale(1.1) rotate(5deg)}}.chat-controls{position:fixed;top:12px;left:16px;display:flex;flex-direction:column;align-items:center;gap:10px;z-index:1200}body.history-open .chat-controls{display:none}.history-toggle{width:40px;height:40px;border-radius:12px;background:#f6f8fa;border:1px solid #e5e7eb;display:inline-flex;align-items:center;justify-content:center;padding:0;color:#1f2328;box-shadow:0 6px 14px #0000000f;transition:transform .15s ease,box-shadow .15s ease}.chat-controls .history-toggle{position:static;top:auto;left:auto}.history-toggle:hover{transform:translateY(-1px);box-shadow:0 10px 20px #00000014}.history-toggle:active{transform:translateY(0);box-shadow:0 6px 14px #0000000f}.history-toggle:focus{outline:2px solid rgba(31,35,40,.3);outline-offset:2px}.history-toggle svg{width:20px;height:20px}.new-chat-button{width:40px;height:40px;border-radius:12px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:#000;background:#f6f8fa;border:1px solid #e5e7eb;box-shadow:0 6px 14px #0000000f;transition:transform .15s ease,box-shadow .15s ease}.new-chat-button:hover{transform:translateY(-1px);box-shadow:0 10px 20px #00000014}.new-chat-button:active{transform:translateY(0);box-shadow:0 6px 14px #0000000f}.new-chat-button:focus{outline:2px solid rgba(31,35,40,.3);outline-offset:2px}.chat-controls .history-toggle,.chat-controls .new-chat-button{background:#f6f8fa;border:1px solid #e5e7eb;box-shadow:0 6px 14px #0000000f;color:#000}.chat-controls .history-toggle svg,.chat-controls .history-toggle svg *,.chat-controls .new-chat-button svg,.chat-controls .new-chat-button svg *{stroke:#000!important;fill:none!important;color:#000!important}@media (max-width: 640px){.chat-controls{left:12px;gap:8px}.history-toggle,.new-chat-button{width:38px;height:38px}}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
  Theme: GitHub
  Description: Light theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-light
  Current colors taken from GitHub's CSS
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.answer-card{background:#fff;border-radius:16px;box-shadow:0 4px 20px #00000014;border:1px solid #f0f0f0;overflow:hidden;margin:24px 0;animation:slideInUp .4s ease-out;position:relative}.answer-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#012060,#023080,#012060);background-size:200% 100%;animation:shimmer 3s ease-in-out infinite}@keyframes slideInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes shimmer{0%,to{background-position:200% 0}50%{background-position:-200% 0}}.answer-card-header{display:flex;align-items:center;justify-content:flex-start;padding:24px 24px 16px;border-bottom:1px solid #f5f5f5;background:linear-gradient(135deg,#fafbff,#fff)}.answer-card-title h2{margin:0;font-size:24px;font-weight:700;color:#1a1a1a;letter-spacing:-.02em;line-height:1.2}.answer-card-content{padding:24px;background:#fff}.answer-loading{display:flex;align-items:center;justify-content:center;gap:12px;padding:40px;color:#6b7280;font-size:16px;font-weight:500}.loading-spinner{width:20px;height:20px;border:2px solid #e5e7eb;border-top:2px solid #012060;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.answer-json{background:#f8f9fa;border:1px solid #e9ecef;border-radius:12px;padding:20px;overflow-x:auto}.answer-json pre{margin:0;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:14px;line-height:1.5;color:#495057;white-space:pre-wrap;word-break:break-word}.answer-card-content .markdown-content{background:transparent;padding:0;box-shadow:none;border-radius:0;margin:0}.answer-card-content .markdown-content .md-ol{counter-reset:step-counter;list-style:none;padding-left:0;margin:20px 0}.answer-card-content .markdown-content .md-ol>.md-li{counter-increment:step-counter;position:relative;padding:16px 0 16px 60px;margin:12px 0;background:#f8f9ff;border:1px solid #e8ecff;border-radius:12px;border-left:4px solid #012060;transition:all .2s ease}.answer-card-content .markdown-content .md-ol>.md-li:hover{background:#f0f2ff;border-left-color:#023080;transform:translate(2px)}.answer-card-content .markdown-content .md-ol>.md-li:before{content:counter(step-counter);position:absolute;left:16px;top:16px;width:28px;height:28px;background:linear-gradient(135deg,#012060,#023080);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;box-shadow:0 2px 8px #0120604d}.answer-card-content .markdown-content .md-ul{list-style:none;padding-left:0}.answer-card-content .markdown-content .md-ul>.md-li{position:relative;padding:8px 0 8px 24px;margin:8px 0;color:#4b5563;line-height:1.6}.answer-card-content .markdown-content .md-ul>.md-li:before{content:"•";position:absolute;left:8px;top:8px;color:#012060;font-weight:700;font-size:16px}.answer-card-content .markdown-content .md-h1,.answer-card-content .markdown-content .md-h2,.answer-card-content .markdown-content .md-h3{color:#1f2937;margin-top:24px;margin-bottom:16px}.answer-card-content .markdown-content .md-h1{font-size:20px;font-weight:700;border-bottom:2px solid #e5e7eb;padding-bottom:8px}.answer-card-content .markdown-content .md-h2{font-size:18px;font-weight:600;border-bottom:1px solid #f3f4f6;padding-bottom:6px}.answer-card-content .markdown-content .md-h3{font-size:16px;font-weight:600;color:#374151}.answer-card-content .markdown-content .md-p{color:#4b5563;line-height:1.7;margin:16px 0}.answer-card-content .markdown-content .md-strong{color:#1f2937;font-weight:600}.answer-card-content .markdown-content .md-inline-code{background:#f1f5f9;color:#0f172a;border:1px solid #e2e8f0;padding:2px 6px;border-radius:4px;font-size:13px}.answer-card-content .markdown-content .md-code-block{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin:16px 0}.answer-card-content .markdown-content .md-blockquote{background:#f0f9ff;border-left:4px solid #0ea5e9;color:#0c4a6e;padding:16px 20px;border-radius:0 8px 8px 0;margin:16px 0}.answer-card-content .markdown-content .md-table{border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000001a}.answer-card-content .markdown-content .md-table th{background:#f8fafc;color:#1e293b;font-weight:600}.answer-card-content .markdown-content .md-table td{color:#475569}@media (max-width: 768px){.answer-card-title h2{font-size:20px}.answer-card-content{padding:20px}.answer-card-content .markdown-content .md-ol>.md-li{padding-left:50px}.answer-card-content .markdown-content .md-ol>.md-li:before{left:12px;width:24px;height:24px;font-size:12px}}@media (prefers-color-scheme: dark){.answer-card{background:#1f2937;border-color:#374151;box-shadow:0 4px 20px #0000004d}.answer-card-header{background:linear-gradient(135deg,#111827,#1f2937);border-bottom-color:#374151}.answer-card-title h2{color:#f9fafb}.answer-card-subtitle{color:#9ca3af}.answer-card-content{background:#1f2937}.answer-card-content .markdown-content .md-ol>.md-li{background:#111827;border-color:#374151;border-left-color:#3b82f6}.answer-card-content .markdown-content .md-ol>.md-li:hover{background:#0f172a;border-left-color:#60a5fa}.answer-card-content .markdown-content .md-p{color:#d1d5db}.answer-card-content .markdown-content .md-strong,.answer-card-content .markdown-content .md-h1,.answer-card-content .markdown-content .md-h2,.answer-card-content .markdown-content .md-h3{color:#f9fafb}}.history-overlay{position:fixed;inset:0;background:#0003;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:999}.history-overlay.open{opacity:1;pointer-events:auto}.history-drawer{top:0;left:0;height:100vh;width:320px;background:#fff;border-right:1px solid #e5e5e5;box-shadow:6px 0 20px #0000000f;transform:translate(-100%);transition:transform .25s ease;z-index:1000;display:grid;grid-template-rows:auto 1fr auto;position:fixed}.history-drawer.open{transform:translate(0)}@media (min-width: 1100px){body.history-open .history-overlay{opacity:0;pointer-events:none}}.history-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #ececec}.history-title{font-weight:700;font-size:16px}.history-header-actions{display:flex;align-items:center;gap:8px}.history-action{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;padding:0;border:1px solid #e5e7eb;background:#f6f8fa;color:#000;box-shadow:0 6px 14px #0000000f;transition:transform .15s ease,box-shadow .15s ease}.history-action:hover{transform:translateY(-1px);box-shadow:0 10px 20px #00000014}.history-action:active{transform:translateY(0);box-shadow:0 6px 14px #0000000f}.history-action:focus{outline:2px solid rgba(31,35,40,.3);outline-offset:2px}.history-new-chat,.history-toggle-internal{color:#000}.history-header-actions svg{stroke:#000!important;fill:none!important;color:#000!important;display:block!important;width:20px!important;height:20px!important}.history-header-actions svg *{stroke:#000!important;fill:none!important}.history-content{overflow:auto;padding:8px;position:relative}.history-list{display:grid;gap:6px}.history-item{position:relative;text-align:left;background:#fff;border:1px solid #ececec;border-radius:10px;padding:10px 8px 10px 12px;transition:background .15s ease,border-color .15s ease;display:flex;align-items:center;justify-content:space-between;gap:8px}.history-item:hover{background:#f8f9fa;border-color:#e5e7eb}.history-question{font-size:14px;color:#1f2328;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1 1 auto}.history-item-actions{flex:0 0 auto;display:flex;align-items:center}.history-item-action{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;border:1px solid #e5e7eb;background:#f6f8fa;color:#000;box-shadow:0 4px 10px #0000000d;transition:transform .15s ease,box-shadow .15s ease}.history-item-action:hover{transform:translateY(-1px);box-shadow:0 8px 16px #00000012}.history-item-action:active{transform:translateY(0);box-shadow:0 4px 10px #0000000d}.history-item-action:focus{outline:2px solid rgba(31,35,40,.3);outline-offset:2px}.history-item-action svg{stroke:#000!important;width:18px;height:18px}.history-item-action.more-btn{width:24px;height:24px;border:none;background:transparent;box-shadow:none;padding:0}.history-item-action.more-btn:hover{transform:none;box-shadow:none;background:transparent;opacity:.8}.history-item-action.more-btn:active{transform:none;opacity:.7}.history-item-action.more-btn svg{stroke:#000!important}.history-item.menu-open{z-index:2050}.history-item-menu{position:absolute;right:8px;top:38px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 12px 30px #0000001f;border-radius:12px;padding:6px;z-index:2100;min-width:140px}.history-item-menu-item{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:8px 12px;border-radius:8px;border:0!important;background:transparent!important;color:#1f2328;cursor:pointer;appearance:none;box-shadow:none}.history-item-menu-item:hover{background:#f6f8fa}.history-item-menu-item.danger{color:#d11a2a}.history-item-menu-item.danger svg{stroke:#d11a2a!important}.history-menu-overlay{position:absolute;inset:0;z-index:2005}.history-confirm-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:3000}.history-confirm-modal{background:#fff;border-radius:12px;width:92%;max-width:420px;box-shadow:0 20px 50px #00000029;border:1px solid #e5e7eb;padding:18px}.confirm-title{font-weight:700;font-size:16px;margin-bottom:6px}.confirm-text{color:#555;margin-bottom:16px}.confirm-actions{display:flex;gap:12px;justify-content:flex-end}.confirm-btn{padding:10px 16px;min-width:96px;border-radius:10px;border:1px solid #d0d7de;background:#fff;color:#111827;font-weight:600;box-shadow:0 1px 2px #0000000a;transition:background .15s ease,box-shadow .15s ease,transform .05s ease,border-color .15s ease}.confirm-btn:hover{background:#f3f4f6;box-shadow:0 2px 6px #00000014}.confirm-btn:active{transform:translateY(1px);box-shadow:0 1px 3px #0000000f}.confirm-btn:focus{outline:2px solid #2563eb;outline-offset:2px;box-shadow:0 0 0 3px #2563eb59}.confirm-btn.danger{background:#ef4444;color:#fff;border-color:#ef4444;box-shadow:0 4px 14px #ef444459}.confirm-btn.danger:hover{background:#dc2626;border-color:#dc2626}.confirm-btn.danger:active{background:#b91c1c;border-color:#b91c1c}.history-item,.history-item-action,.history-item-menu-item{outline:none}.history-item:focus,.history-item-action:focus,.history-item-menu-item:focus{outline:none;box-shadow:none}.history-item.menu-open,.history-item.menu-open:hover{background:#fff;border-color:#ececec}.history-status,.history-error,.history-empty{padding:10px 12px;color:#555}.history-error{color:#b00020}.history-footer{padding:10px;border-top:1px solid #ececec}.user-info{display:flex;align-items:center;justify-content:center;min-height:36px}.user-email{font-size:12px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
