@import"https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Space+Grotesk:wght@400;500;600&display=swap";:root{font-family:Space Grotesk,Segoe UI,Tahoma,sans-serif;line-height:1.5;font-weight:400;color:#191816;background-color:#f4f1ec;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg: #f4f1ec;--ink: #191816;--ink-muted: #5a554d;--surface: #fff9f2;--surface-2: #f0e8dc;--accent: #0d9488;--accent-2: #f97316;--accent-3: #2563eb;--border: rgba(25, 24, 22, .12);--shadow: 0 14px 36px rgba(22, 20, 16, .12)}*{margin:0;padding:0;box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(1200px 700px at 10% -10%,rgba(13,148,136,.14),transparent 60%),radial-gradient(900px 600px at 110% 10%,rgba(249,115,22,.14),transparent 50%),linear-gradient(180deg,#f9f4ec,#f3ede4 60%,#f7f2ea);color:var(--ink)}#root{width:100%;min-height:100vh}*{box-sizing:border-box}.app{height:100vh;display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem 1.5rem 2rem;position:relative;overflow:hidden}.app:before,.app:after{content:"";position:absolute;border-radius:999px;filter:blur(.5px);opacity:.55;z-index:0}.app:before{width:420px;height:420px;background:radial-gradient(circle at 30% 30%,rgba(13,148,136,.18),transparent 65%);top:-180px;right:-140px}.app:after{width:520px;height:520px;background:radial-gradient(circle at 30% 30%,rgba(37,99,235,.14),transparent 65%);bottom:-220px;left:-200px}.header{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#fff7ec,#f6efe4);border:1px solid var(--border);border-radius:18px;padding:1.25rem 1.75rem;box-shadow:var(--shadow);animation:slideIn .6s ease}.header h1{margin:0;font-family:Fraunces,Times New Roman,serif;font-size:clamp(1.6rem,2vw + 1rem,2.4rem);letter-spacing:-.02em}.tabs{display:inline-flex;gap:.5rem;background:#1918160f;border-radius:999px;padding:.35rem}.tab{padding:.55rem 1.1rem;border:none;border-radius:999px;background:transparent;color:var(--ink-muted);font-weight:600;cursor:pointer;text-decoration:none;transition:background .2s ease,color .2s ease}.tab.active{background:#fff;color:var(--ink);box-shadow:0 8px 16px #1614101f}.main-container{position:relative;z-index:1;display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.25rem;flex:1;min-height:0}.main-container.chat-only{grid-template-columns:minmax(0,1fr)}.sidebar{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:1.25rem;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:1.25rem;overflow:hidden;animation:rise .6s ease .05s both}.sidebar h2{font-size:1rem;text-transform:uppercase;letter-spacing:.16em;color:var(--ink-muted)}.table-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem;overflow-y:auto;max-height:55vh;padding-right:.25rem}.table-list li{display:flex;justify-content:space-between;align-items:center;padding:.7rem .8rem;cursor:pointer;border-radius:14px;border:1px solid transparent;background:#fffdf9;transition:border .2s ease,transform .2s ease,background .2s ease}.table-list li:hover{border-color:#0d948859;transform:translateY(-1px)}.table-list li.active{background:#0d94881f;border-color:#0d948866}.table-name{font-weight:600}.table-count{font-size:.78rem;color:var(--ink-muted);background:#1918160f;padding:.2rem .6rem;border-radius:999px}.table-list li.active .table-count{background:#0d94882e;color:#0f766e}.stats-summary{padding:1rem;border-radius:16px;background:linear-gradient(135deg,#f973161f,#f973160a);border:1px dashed rgba(249,115,22,.32)}.stats-summary h3{font-size:.85rem;text-transform:uppercase;letter-spacing:.18em;color:var(--ink-muted);margin-bottom:.5rem}.stats-summary p{font-size:1rem;font-weight:600}.content{background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:1.5rem;box-shadow:var(--shadow);overflow:hidden;animation:rise .6s ease .1s both;display:flex;flex-direction:column;min-height:0}.content.chat-only{padding:0;background:transparent;border:none;box-shadow:none;height:100%}.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:1rem;height:100%;min-height:0}.welcome{text-align:left;display:grid;gap:1rem;padding:.5rem}.welcome h2{font-family:Fraunces,Times New Roman,serif;font-size:clamp(1.5rem,1.2vw + 1.2rem,2.2rem)}.welcome p{color:var(--ink-muted)}.table-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.table-card{background:linear-gradient(135deg,#fffaf3,#f4ede3);border:1px solid rgba(25,24,22,.08);border-radius:16px;padding:1.25rem;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;animation:rise .5s ease both}.table-card:nth-child(3n+1){animation-delay:.05s}.table-card:nth-child(3n+2){animation-delay:.12s}.table-card:nth-child(3n){animation-delay:.18s}.table-card:hover{transform:translateY(-3px);box-shadow:0 16px 28px #1614101f}.table-card h3{margin-bottom:.4rem;font-weight:600}.table-card p{color:var(--ink-muted);font-size:.9rem}.table-view{display:flex;flex-direction:column;gap:1rem;min-height:0}.table-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding-bottom:.75rem}.table-header h2{font-family:Fraunces,Times New Roman,serif;font-size:1.5rem}.record-count{color:var(--ink-muted);font-size:.9rem}.schema-info{background:var(--surface-2);border-radius:16px;padding:.85rem 1rem;border:1px solid var(--border)}.schema-info h3{font-size:.85rem;text-transform:uppercase;letter-spacing:.16em;color:var(--ink-muted);margin-bottom:.6rem}.schema-cols{display:flex;flex-wrap:wrap;gap:.5rem}.schema-col{display:flex;gap:.35rem;background:#2563eb1a;color:#1e3a8a;padding:.3rem .6rem;border-radius:999px;font-size:.78rem}.schema-col strong{font-weight:600}.schema-col em{font-style:normal;color:#1e40af}.loading{padding:3rem;text-align:center;color:var(--ink-muted)}.table-wrapper{overflow:auto;border:1px solid var(--border);border-radius:16px;background:#fffdf9;min-height:0;flex:1}table{width:100%;border-collapse:collapse;font-size:.88rem}th,td{padding:.7rem 1rem;text-align:left;border-bottom:1px solid rgba(25,24,22,.08);white-space:nowrap}th{background:#f6efe4;position:sticky;top:0;font-weight:600;color:var(--ink-muted)}tr:hover td{background:#0d948814}td em{color:#8a857d;font-style:italic}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;padding-top:.5rem}.pagination button{padding:.5rem 1.1rem;background:#fffdf9;color:var(--ink);border:1px solid var(--border);border-radius:999px;cursor:pointer;transition:background .2s ease,transform .2s ease}.pagination button:hover:not(:disabled){background:#0d94881f;transform:translateY(-1px)}.pagination button:disabled{opacity:.5;cursor:not-allowed}.pagination span{color:var(--ink-muted)}.chat-panel{background:#fffaf4;border:1px solid var(--border);border-radius:22px;display:flex;flex-direction:column;box-shadow:var(--shadow);overflow:hidden;animation:rise .6s ease .15s both;min-height:0;flex:1;height:100%}.chat-panel h2{margin:0;padding:1rem 1.25rem;font-size:1rem;text-transform:uppercase;letter-spacing:.18em;color:var(--ink-muted);border-bottom:1px solid var(--border)}.timeline-panel{background:#fffaf4;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);padding:1rem;display:flex;flex-direction:column;min-height:0;max-height:100%;overflow:hidden}.chat-timeline{padding:0;background:transparent;display:flex;flex-direction:column;gap:.5rem;min-height:0;flex:1;overflow-y:auto}.timeline-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.18em;color:var(--ink-muted);margin-bottom:.5rem}.timeline-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem;overflow-y:auto;flex:1;min-height:0}.timeline-item{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:.5rem;font-size:.82rem;color:var(--ink);animation:fadeInUp .2s ease;cursor:pointer}.timeline-dot{width:6px;height:6px;border-radius:50%;background:#19181666}.timeline-item.status .timeline-dot{background:#0d9488b3}.timeline-item.tool .timeline-dot{background:#f97316cc}.timeline-item.sql .timeline-dot{background:#2563ebcc}.timeline-item.done .timeline-dot{background:#10b981cc}.timeline-item.error .timeline-dot{background:#b91c1ccc}.timeline-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-time{font-size:.7rem;color:var(--ink-muted)}.timeline-detail{grid-column:2 / -1;font-size:.75rem;color:var(--ink-muted);line-height:1.4;padding:.15rem 0 .35rem}.tool-call-stack{display:flex;flex-direction:column;gap:.6rem}.timeline-empty{font-size:.85rem;color:var(--ink-muted);padding:.25rem 0}.debug-panel{margin-top:1rem;display:flex;flex-direction:column;gap:.5rem}.debug-toggle{display:flex;gap:.5rem;align-items:center;font-size:.85rem;color:var(--ink-muted)}.debug-trace{background:#1918160f;border:1px solid rgba(25,24,22,.08);border-radius:12px;padding:.75rem;font-size:.72rem;max-height:240px;overflow:auto;white-space:pre-wrap;word-break:break-word}.chat-messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.75rem}.chat-welcome{text-align:left;padding:1.5rem 1rem;color:var(--ink-muted)}.chat-welcome .hint{font-size:.85rem;color:#817c74;margin-top:.75rem}.chat-message{display:flex;flex-direction:column;gap:.6rem;animation:fadeInUp .2s ease}.chat-message.user .message-content{background:#0d94881f;color:#0f766e;align-self:flex-end}.chat-message.assistant .message-content{background:#f2ebe0;color:var(--ink);align-self:flex-start}.message-content{padding:.75rem 1rem;border-radius:16px;white-space:pre-wrap;word-break:break-word;border:1px solid rgba(25,24,22,.06)}.message-content pre{background:#1918160f;padding:.75rem;border-radius:10px;overflow-x:auto;margin:.5rem 0 0}.message-content code{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.85rem}.typing-indicator{display:flex;gap:4px;padding:.5rem .75rem}.typing-indicator span{width:8px;height:8px;background:#c7bfb4;border-radius:50%;animation:typing 1s infinite}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,to{opacity:.3}50%{opacity:1}}.chat-input{display:flex;gap:.5rem;padding:1rem;border-top:1px solid var(--border);background:#fff7ef}.chat-input textarea{flex:1;padding:.7rem .8rem;background:#fffdf9;border:1px solid rgba(25,24,22,.12);border-radius:12px;color:var(--ink);resize:none;font-family:inherit}.chat-input textarea:focus{outline:2px solid rgba(13,148,136,.3);border-color:#0d948866}.chat-input textarea::placeholder{color:#9b948a}.chat-input button{padding:.7rem 1.4rem;background:var(--accent-2);color:#fff;border:none;border-radius:12px;cursor:pointer;font-weight:600;transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 10px 20px #f9731647}.chat-input button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 12px 24px #f9731657}.chat-input button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.query-result{background:#fffdf9;border-radius:14px;overflow:hidden;border:1px solid rgba(25,24,22,.08)}.inline-tool-results .query-result{margin-top:.75rem}.query-info{padding:.5rem .75rem;background:#2563eb1a;font-size:.8rem;color:#1d4ed8;border-bottom:1px solid rgba(37,99,235,.2);display:flex;justify-content:space-between;align-items:center}.export-btn{background:#0d948826;color:#0d9488;border:1px solid rgba(13,148,136,.3);padding:.25rem .6rem;border-radius:6px;font-size:.75rem;cursor:pointer;transition:all .15s}.export-btn:hover{background:#0d948840;border-color:#0d948880}.query-error{padding:.75rem;color:#b91c1c;font-size:.85rem}.query-table-wrapper{max-height:260px;overflow:auto}.query-table{width:100%;border-collapse:collapse;font-size:.78rem}.query-table th,.query-table td{padding:.45rem .7rem;text-align:left;border-bottom:1px solid rgba(25,24,22,.08);white-space:nowrap}.query-table th{background:#f0e8dc;color:#4b5563;font-weight:600;position:sticky;top:0}.query-table tr:hover td{background:#0d948814}.query-table td em{color:#8a857d;font-style:italic}.status-indicator{display:flex;gap:.5rem;padding:.75rem;background:#1918160a;border-radius:14px;border:1px dashed rgba(25,24,22,.12)}.status-step{display:flex;flex-direction:column;align-items:center;flex:1;opacity:.35;gap:.35rem;font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;color:var(--ink-muted)}.status-step.active,.status-step.complete{opacity:1}.status-dot{width:22px;height:22px;border-radius:50%;background:#1918161f;display:flex;align-items:center;justify-content:center;color:var(--ink);font-weight:600}.status-step.complete .status-dot{background:#0d948833;color:#0f766e}.status-step.active .status-dot{background:#f973162e;color:#c2410c}.pulse{width:8px;height:8px;background:#c2410c;border-radius:50%;animation:pulse 1s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(.8);opacity:.5}50%{transform:scale(1.2);opacity:1}}.thinking-section{background:#2563eb14;border:1px solid rgba(37,99,235,.2);border-radius:14px;overflow:hidden;animation:fadeInUp .2s ease}.thinking-header{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;background:#2563eb1f}.thinking-header:hover{background:#2563eb2e}.thinking-title{flex:1;font-size:.85rem;font-weight:600;color:#1d4ed8}.thinking-toggle{font-size:.7rem;color:#64748b}.thinking-preview{padding:.5rem .75rem;font-size:.8rem;color:#475569;font-style:italic;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thinking-content{padding:.75rem;font-size:.85rem;color:#1f2937;max-height:220px;overflow-y:auto;white-space:pre-wrap;line-height:1.5}.tool-call-card{background:#1918160a;border-radius:14px;margin-top:.75rem;overflow:hidden;border-left:3px solid rgba(25,24,22,.2)}.tool-call-card.running{border-left-color:#f9731699}.tool-call-card.complete{border-left-color:#0d948899}.tool-call-header{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;background:#1918160d}.tool-call-header:hover{background:#19181614}.tool-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:.8rem}.tool-call-card.complete .tool-icon{color:#0f766e}.tool-name{flex:1;font-size:.85rem;font-weight:600}.tool-time{font-size:.75rem;color:#64748b;background:#1918160f;padding:.15rem .4rem;border-radius:4px}.tool-toggle{font-size:.7rem;color:#64748b}.tool-call-body{padding:.75rem;border-top:1px solid rgba(25,24,22,.08)}.tool-sql pre{margin:0 0 .75rem;padding:.5rem;background:#1918160f;border-radius:8px;font-size:.8rem;overflow-x:auto}.spinner{width:12px;height:12px;border:2px solid rgba(249,115,22,.2);border-top-color:#f97316;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.streaming-cursor{animation:blink .8s step-end infinite;color:#f97316;font-weight:700}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes rise{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1200px){.main-container{grid-template-columns:240px minmax(0,1fr)}.main-container.chat-only{grid-template-columns:minmax(0,1fr)}.chat-panel{grid-column:1 / -1;min-height:380px}.chat-layout{grid-template-columns:1fr;grid-template-rows:1fr auto;min-height:0}.timeline-panel{max-height:260px;min-height:120px;overflow-y:auto;display:flex;flex-direction:column}.chat-timeline{flex:1;min-height:60px;overflow-y:auto}.timeline-list{max-height:none;flex:1;overflow-y:auto}}@media(max-width:900px){.main-container{grid-template-columns:1fr}.sidebar{max-height:320px}.table-list{max-height:200px}}@media(max-width:640px){.header{flex-direction:column;align-items:flex-start;gap:.75rem}.tabs{width:100%;justify-content:space-between}.content{padding:1rem}}
