:root{--accent: #5b5fc7;--accent-strong: #4b4fbf;--bg: #f3f4f9;--surface: #ffffff;--surface-2: #f6f7fc;--text: #1b1b1f;--subtle: #5c5c66;--border: #e3e4ef;--danger: #c4314b;--danger-bg: #fdeced;--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);--radius: 12px;--font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Segoe UI Web (West European)", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif}html[data-theme=dark]{--bg: #1b1b1f;--surface: #242429;--surface-2: #2c2c33;--text: #f3f3f5;--subtle: #b4b4be;--border: #3a3a44;--accent: #8b8ff0;--accent-strong: #a0a3f5;--danger-bg: #3a2126;--shadow: 0 1px 2px rgba(0, 0, 0, .4)}html[data-theme=contrast]{--bg: #000000;--surface: #000000;--surface-2: #101010;--text: #ffffff;--subtle: #ffffff;--border: #ffffff;--accent: #4a9eff;--accent-strong: #79b8ff;--danger-bg: #3a0000;--shadow: none}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}button{font-family:inherit}.app{display:flex;flex-direction:column;height:100vh;height:100dvh;background:var(--bg)}.app-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand-mark{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#5b5fc7,#2b88d8);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:700;letter-spacing:.3px;flex:0 0 auto}.brand-mark.large{width:56px;height:56px;border-radius:14px;font-size:15px;margin-bottom:10px}.brand-text{min-width:0}.brand-title{font-size:15px;font-weight:600;line-height:1.3}.brand-sub{font-size:12px;color:var(--subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.badge{font-size:11px;padding:3px 8px;border-radius:999px;border:1px solid var(--border);color:var(--subtle);background:var(--surface-2);white-space:nowrap}.badge-warn{color:#8a4b00;background:#fff4e5;border-color:#f3d6a8}html[data-theme=dark] .badge-warn{color:#ffd9a8;background:#3b2a10;border-color:#6b4a1d}.icon-button{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--subtle);cursor:pointer}.icon-button:hover{background:var(--surface-2);color:var(--text)}.chat{flex:1;overflow-y:auto;padding:20px 16px 6px;scroll-behavior:smooth}.chat-inner{max-width:880px;margin:0 auto;display:flex;flex-direction:column;gap:18px;padding-bottom:14px}.message-row{display:flex;align-items:flex-start;gap:10px}.from-user{justify-content:flex-end}.avatar{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#5b5fc7,#2b88d8);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;flex:0 0 auto;margin-top:2px}.avatar-error{background:var(--danger)}.message-content{min-width:0;flex:1 1 0;max-width:100%;display:flex;flex-direction:column;gap:8px}.bubble{border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.assistant-bubble{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-top-left-radius:4px;max-width:760px;width:100%}.user-bubble{background:var(--accent);color:#fff;border-top-right-radius:4px;max-width:min(620px,86%)}.bubble-error{border-color:#f2c4cc;background:var(--danger-bg)}html[data-theme=dark] .bubble-error{border-color:#6e2b36}.bubble-text{white-space:pre-wrap}.bubble-text code,.query-details code{font-family:Cascadia Code,Consolas,SFMono-Regular,Menlo,monospace;font-size:12px;background:var(--surface-2);border-radius:4px;padding:1px 4px}.message-meta{display:flex;gap:6px;margin-top:10px;font-size:11px;color:var(--subtle);flex-wrap:wrap}.query-details{margin-top:10px;border-top:1px dashed var(--border);padding-top:8px;font-size:12px}.query-details summary{cursor:pointer;color:var(--subtle);display:flex;align-items:center;gap:8px;list-style:none}.query-details summary::-webkit-details-marker{display:none}.query-details summary:before{content:"▸";font-size:10px;transition:transform .15s ease}.query-details[open] summary:before{transform:rotate(90deg)}.query-entity{margin-left:auto;font-size:11px;padding:1px 7px;border-radius:999px;background:var(--surface-2);border:1px solid var(--border)}.query-body{margin-top:8px;display:flex;flex-direction:column;gap:6px}.query-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.query-label{color:var(--subtle)}.query-filter{color:var(--text)}.query-url{display:flex;gap:8px;align-items:flex-start;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:8px}.query-url code{flex:1;white-space:pre-wrap;word-break:break-all;background:transparent;padding:0}.link-button,.text-button{border:none;background:none;color:var(--accent);cursor:pointer;font-size:12px;padding:2px 4px;border-radius:4px}.link-button:hover,.text-button:hover{text-decoration:underline}.suggestions{display:flex;flex-wrap:wrap;gap:8px}.chip{font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;transition:border-color .15s ease,color .15s ease}.chip:hover{border-color:var(--accent);color:var(--accent)}.empty-state{padding:24px 4px;display:flex;flex-direction:column;gap:28px}.empty-hero{text-align:center;max-width:560px;margin:0 auto;display:flex;flex-direction:column;align-items:center}.empty-mark{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#5b5fc7,#2b88d8);color:#fff;display:grid;place-items:center;font-weight:700;margin-bottom:14px}.empty-hero h1{font-size:22px;margin:0 0 8px}.empty-hero p{margin:0;color:var(--subtle);font-size:14px;line-height:1.65}.example-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;max-width:720px;margin:0 auto}.example-card{text-align:left;display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:12px;border:1px solid var(--border);background:var(--surface);cursor:pointer;transition:border-color .15s ease,transform .15s ease}.example-card:hover{border-color:var(--accent);transform:translateY(-1px)}.example-hint{font-size:11px;color:var(--accent);font-weight:600}.example-title{font-size:14px;font-weight:600;color:var(--text)}.example-prompt{font-size:12px;color:var(--subtle)}.typing{display:inline-flex;gap:4px;align-items:center;padding:14px 16px}.dot{width:6px;height:6px;border-radius:50%;background:var(--subtle);animation:blink 1.2s infinite ease-in-out}.dot:nth-child(2){animation-delay:.15s}.dot:nth-child(3){animation-delay:.3s}@keyframes blink{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}.composer{border-top:1px solid var(--border);background:var(--surface);padding:12px 16px 10px}.composer-inner{max-width:880px;margin:0 auto;display:flex;align-items:flex-end;gap:10px;background:var(--surface-2);border:1px solid var(--border);border-radius:16px;padding:8px 8px 8px 14px;transition:border-color .15s ease}.composer-inner:focus-within{border-color:var(--accent)}.composer-input{flex:1;border:none;outline:none;resize:none;background:transparent;color:var(--text);font-size:14px;line-height:1.5;padding:6px 0;max-height:160px;font-family:inherit}.composer-input::placeholder{color:var(--subtle)}.send-button{width:36px;height:36px;border-radius:50%;border:none;background:var(--accent);color:#fff;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}.send-button:hover:not(:disabled){background:var(--accent-strong)}.send-button:disabled{opacity:.45;cursor:not-allowed}.composer-hint{max-width:880px;margin:6px auto 0;display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--subtle)}.banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff4e5;color:#8a4b00;border-bottom:1px solid #f3d6a8;padding:8px 20px;font-size:12px}html[data-theme=dark] .banner{background:#3b2a10;color:#ffd9a8;border-bottom-color:#6b4a1d}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:grid;place-items:center;padding:20px;z-index:50}.modal{width:min(520px,100%);max-height:80vh;overflow-y:auto;background:var(--surface);color:var(--text);border-radius:14px;border:1px solid var(--border);box-shadow:0 20px 50px #00000040;padding:18px 20px}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-header h2{font-size:16px;margin:0}.modal-muted{color:var(--subtle);font-size:12px;line-height:1.6}.modal-error{display:flex;flex-direction:column;gap:6px;font-size:13px}.modal-error code{display:block;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:8px;font-size:11px;word-break:break-all;white-space:pre-wrap}.diagnostics{display:grid;grid-template-columns:110px 1fr;gap:8px 12px;margin:0;font-size:13px}.diagnostics dt{color:var(--subtle)}.diagnostics dd{margin:0;word-break:break-all}.mono{font-family:Cascadia Code,Consolas,monospace;font-size:12px}.screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:var(--bg)}.screen-card{width:min(440px,100%);background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:32px 28px;text-align:center;display:flex;flex-direction:column;align-items:center}.screen-card h1{font-size:20px;margin:0 0 8px}.screen-card p{color:var(--subtle);font-size:13px;line-height:1.65;margin:0 0 18px}.screen-hint{margin-top:16px!important;font-size:11px!important}.primary-button{border:none;border-radius:10px;background:var(--accent);color:#fff;font-size:14px;font-weight:600;padding:10px 18px;cursor:pointer}.primary-button:hover:not(:disabled){background:var(--accent-strong)}.primary-button:disabled{opacity:.6;cursor:progress}.spinner{width:22px;height:22px;border-radius:50%;border:2px solid var(--border);border-top-color:var(--accent);animation:spin .9s linear infinite;margin-top:6px}@keyframes spin{to{transform:rotate(360deg)}}.adaptive-card{margin-top:12px;width:100%;background:#fff;border-radius:10px;overflow-x:auto;color:#1b1b1f}.adaptive-card .ac-container{width:100%;padding:0}.adaptive-card table{width:100%;border-collapse:collapse}@media(max-width:600px){.app-header{padding:10px 12px}.brand-sub{max-width:150px}.badge{display:none}.chat{padding:14px 10px 4px}.composer{padding:10px 10px 8px}.composer-hint span:last-child{display:none}.empty-hero h1{font-size:19px}.example-grid{grid-template-columns:1fr}}
