#root{width:100%;height:100vh}*{box-sizing:border-box;margin:0;padding:0}body{color:#1e293b;background:#f8fafc;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;overflow:hidden}.app{flex-direction:column;width:100vw;height:100vh;display:flex}.app-header{color:#f1f5f9;z-index:100;background:#0f172a;justify-content:space-between;align-items:center;height:50px;padding:8px 20px;display:flex}.header-left{align-items:center;gap:10px;display:flex}.logo{color:#fff;letter-spacing:1px;background:#3b82f6;border-radius:4px;padding:3px 8px;font-size:14px;font-weight:700}.app-title{color:#f1f5f9;font-size:15px;font-weight:600}.header-divider{color:#475569;font-size:14px}.header-context{color:#94a3b8;font-size:14px}.header-right{font-size:13px}.stats-badge{color:#94a3b8;font-variant-numeric:tabular-nums;background:#1e293b;border:1px solid #334155;border-radius:4px;padding:4px 10px;font-size:12px}.search-bar{width:260px;position:relative}.search-input{color:#e2e8f0;background:#1e293b;border:1px solid #334155;border-radius:6px;outline:none;width:100%;padding:6px 12px;font-size:13px}.search-input::placeholder{color:#64748b}.search-input:focus{border-color:#3b82f6}.search-dropdown{z-index:200;background:#fff;border:1px solid #e2e8f0;border-radius:6px;max-height:300px;margin-top:4px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 4px 12px #00000026}.search-result{cursor:pointer;text-align:left;color:#1e293b;background:0 0;border:none;align-items:center;gap:8px;width:100%;padding:8px 12px;font-size:13px;display:flex}.search-result:hover{background:#f1f5f9}.sr-entity{color:#1d4ed8;white-space:nowrap;background:#dbeafe;border-radius:4px;padding:2px 6px;font-size:11px;font-weight:500}.sr-label{color:#334155}.app-body{flex:1;display:flex;overflow:hidden}.graph-container{flex:1;position:relative;overflow:hidden}.sidebar{background:#fff;border-left:1px solid #e2e8f0;flex-direction:column;width:380px;display:flex}.graph-toolbar{z-index:50;gap:8px;display:flex;position:absolute;top:12px;left:12px}.toolbar-btn{cursor:pointer;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 14px;font-size:13px}.toolbar-btn:hover{background:#f1f5f9}.loading-overlay{color:#64748b;z-index:50;background:#ffffffe6;border-radius:8px;padding:12px 24px;font-size:14px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.graph-view{width:100%;height:100%;position:relative}.graph-view canvas{cursor:grab}.graph-view canvas:active{cursor:grabbing}.graph-legend{background:#fffffff2;border:1px solid #e2e8f0;border-radius:8px;flex-wrap:wrap;gap:8px;max-width:520px;padding:8px 12px;display:flex;position:absolute;bottom:12px;left:12px}.legend-item{color:#64748b;align-items:center;gap:4px;font-size:11px;display:flex}.legend-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.node-detail{z-index:60;background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:340px;max-height:calc(100vh - 140px);position:absolute;top:60px;left:20px;overflow-y:auto;box-shadow:0 4px 16px #00000014}.node-detail-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.node-detail-header h3{font-size:16px;font-weight:600}.close-btn{cursor:pointer;color:#94a3b8;background:0 0;border:none;padding:4px;font-size:18px}.node-detail-body{padding:12px 16px}.prop-row{border-bottom:1px solid #f8fafc;justify-content:space-between;padding:4px 0;font-size:13px;display:flex}.prop-key{color:#0f172a;flex-shrink:0;margin-right:12px;font-weight:500}.prop-val{color:#64748b;text-align:right;word-break:break-all}.prop-hidden{color:#94a3b8;font-size:12px;font-style:italic}.node-connections{color:#64748b;margin-top:8px;padding:6px 0;font-size:13px}.node-actions{margin:8px 0}.btn-expand{color:#2563eb;cursor:pointer;background:#eff6ff;border:1px solid #3b82f6;border-radius:6px;width:100%;padding:8px;font-size:13px;font-weight:500}.btn-expand:hover{background:#dbeafe}.connection-list{margin-top:12px}.connection-list h4{color:#334155;margin-bottom:8px;font-size:13px}.connection-item{cursor:pointer;text-align:left;background:#f8fafc;border:none;border-radius:4px;align-items:center;gap:6px;width:100%;margin-bottom:4px;padding:6px 8px;font-size:12px;display:flex}.connection-item:hover{background:#eff6ff}.conn-dir{color:#3b82f6;font-family:monospace;font-weight:600}.conn-dir.incoming{color:#dc2626}.conn-relation{color:#64748b;font-size:11px}.conn-label{color:#0f172a;margin-left:auto;font-weight:500}.more-connections{color:#94a3b8;padding:4px 8px;font-size:12px}.chat-panel{flex-direction:column;height:100%;display:flex}.chat-header{border-bottom:1px solid #f1f5f9;padding:16px}.chat-header h3{font-size:15px;font-weight:600}.chat-subtitle{color:#94a3b8;font-size:12px}.chat-messages{flex-direction:column;flex:1;gap:16px;padding:16px;display:flex;overflow-y:auto}.chat-msg{flex-direction:column;gap:4px;display:flex}.msg-avatar{align-items:center;gap:8px;display:flex}.msg-avatar-user{justify-content:flex-end}.avatar-icon{color:#fff;background:#0f172a;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:11px;font-weight:700;display:flex}.avatar-user{color:#334155;background:#e2e8f0}.msg-meta{flex-direction:column;display:flex}.msg-name{font-size:13px;font-weight:600}.msg-content{color:#334155;font-size:14px;line-height:1.6}.chat-msg-user .msg-content{color:#f1f5f9;background:#0f172a;border-radius:10px 2px 10px 10px;align-self:flex-end;max-width:90%;padding:10px 14px}.chat-msg-user .msg-content p{margin:0}.chat-msg-assistant .msg-content{padding:4px 0}.msg-content ul,.msg-content ol{margin:4px 0;padding-left:20px}.msg-content code{background:#f1f5f9;border-radius:3px;padding:1px 4px;font-size:13px}.msg-content pre{background:#f1f5f9;border-radius:6px;margin:4px 0;padding:10px;font-size:12px;overflow-x:auto}.sql-details,.results-details{margin-top:8px}.sql-details summary,.results-details summary{color:#64748b;cursor:pointer;padding:4px 0;font-size:12px}.sql-code{color:#e2e8f0;white-space:pre-wrap;background:#0f172a;border-radius:6px;padding:10px;font-family:JetBrains Mono,Fira Code,monospace;font-size:12px;overflow-x:auto}.results-table-wrap{max-height:200px;margin-top:4px;overflow:auto}.results-table{border-collapse:collapse;width:100%;font-size:12px}.results-table th{text-align:left;white-space:nowrap;background:#f1f5f9;padding:6px 8px;font-weight:600;position:sticky;top:0}.results-table td{white-space:nowrap;border-bottom:1px solid #f1f5f9;padding:4px 8px}.referenced-nodes{flex-wrap:wrap;gap:4px;margin-top:8px;display:flex}.node-chip{cursor:pointer;color:#2563eb;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px;padding:3px 8px;font-size:11px}.node-chip:hover{background:#eff6ff;border-color:#3b82f6}.typing-indicator{gap:4px;padding:8px 0;display:flex}.typing-indicator span{background:#94a3b8;border-radius:50%;width:6px;height:6px;animation:1.4s ease-in-out infinite bounce}.typing-indicator span:first-child{animation-delay:0s}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,80%,to{transform:translateY(0)}40%{transform:translateY(-6px)}}.example-queries{flex-direction:column;gap:6px;padding:0 16px 8px;display:flex}.example-btn{cursor:pointer;text-align:left;color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px 12px;font-size:13px}.example-btn:hover{background:#eff6ff;border-color:#93c5fd}.chat-input-form{border-top:1px solid #f1f5f9;padding:12px 16px}.chat-input-wrap{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:8px 12px}.input-status{color:#94a3b8;align-items:center;gap:6px;margin-bottom:6px;font-size:11px;display:flex}.status-dot{background:#22c55e;border-radius:50%;width:6px;height:6px}.chat-input{color:#0f172a;background:0 0;border:none;outline:none;width:100%;padding:4px 0;font-size:14px}.chat-input::placeholder{color:#94a3b8}.send-btn{float:right;color:#fff;cursor:pointer;background:#0f172a;border:none;border-radius:6px;margin-top:6px;padding:6px 16px;font-size:13px}.send-btn:disabled{opacity:.4;cursor:not-allowed}.send-btn:hover:not(:disabled){background:#1e293b}
