html,body,#root{height:100%}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0f1117;--surface: #1a1d27;--surface-hover: #22263a;--border: #2a2f45;--accent: #4f6ef7;--accent-hover: #6b85ff;--user-bg: #1e2a5e;--user-border: #2e3f8c;--assistant-bg: #1a1d27;--error-bg: #3b1212;--error-border: #7a1f1f;--text: #e4e8f0;--text-muted: #6b7280;--text-dim: #9ca3af;--radius: 16px;--radius-sm: 8px;--shadow: 0 4px 24px rgba(0, 0, 0, .4);font-size:15px;color-scheme:dark}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);height:100dvh;overflow:hidden}#root{height:100dvh;display:flex;flex-direction:column}.app{display:flex;flex-direction:column;height:100%;max-width:860px;margin:0 auto;width:100%}.header{border-bottom:1px solid var(--border);padding:14px 24px;flex-shrink:0;background:#0f1117d9;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);position:sticky;top:0;z-index:10}.header-inner{display:flex;align-items:center;gap:12px}.logo{width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,var(--accent),#8b5cf6);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;color:#fff;flex-shrink:0;box-shadow:0 0 16px #4f6ef766}.title{font-size:17px;font-weight:700;letter-spacing:.04em}.subtitle{font-size:12px;color:var(--text-muted);margin-top:1px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.refresh-status{font-size:12px;color:var(--text-dim);white-space:nowrap;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.refresh-btn{width:34px;height:34px;border-radius:8px;background:transparent;border:1px solid var(--border);color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,color .15s,border-color .15s}.refresh-btn:hover:not(:disabled){background:var(--surface-hover);border-color:var(--accent);color:var(--text)}.refresh-btn:disabled{opacity:.4;cursor:not-allowed}.refresh-btn svg{width:15px;height:15px}.refresh-btn.spinning svg{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.chat-area{flex:1;overflow-y:auto;padding:32px 24px 16px;display:flex;flex-direction:column;gap:16px;scroll-behavior:smooth}.chat-area::-webkit-scrollbar{width:6px}.chat-area::-webkit-scrollbar-track{background:transparent}.chat-area::-webkit-scrollbar-thumb{background:var(--border);border-radius:999px}.empty-state{margin:auto;text-align:center;padding:40px 24px}.empty-heading{font-size:22px;font-weight:600;color:var(--text);margin-bottom:8px}.empty-sub{color:var(--text-muted);margin-bottom:28px}.suggestions{display:flex;flex-direction:column;gap:10px;align-items:center}.suggestion-chip{background:var(--surface);border:1px solid var(--border);color:var(--text-dim);border-radius:var(--radius-sm);padding:10px 18px;cursor:pointer;font-size:13.5px;transition:background .15s,border-color .15s,color .15s;max-width:360px;width:100%}.suggestion-chip:hover{background:var(--surface-hover);border-color:var(--accent);color:var(--text)}.message-row{display:flex;width:100%}.message-row.user{justify-content:flex-end}.message-row.assistant{justify-content:flex-start}.bubble{max-width:78%;padding:12px 16px;border-radius:var(--radius);line-height:1.6;white-space:pre-wrap;word-break:break-word;font-size:14.5px}.bubble.user{background:var(--user-bg);border:1px solid var(--user-border);border-bottom-right-radius:4px}.bubble.assistant{background:var(--assistant-bg);border:1px solid var(--border);border-bottom-left-radius:4px}.bubble.error{background:var(--error-bg);border-color:var(--error-border);color:#f87171}.bubble.typing{display:flex;align-items:center;gap:5px;padding:14px 18px}.bubble.typing span{width:7px;height:7px;background:var(--text-muted);border-radius:50%;animation:bounce 1.2s infinite ease-in-out}.bubble.typing span:nth-child(2){animation-delay:.2s}.bubble.typing span:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,80%,to{transform:translateY(0);opacity:.4}40%{transform:translateY(-6px);opacity:1}}.input-area{flex-shrink:0;padding:12px 24px 20px;border-top:1px solid var(--border);background:var(--bg)}.input-form{display:flex;align-items:flex-end;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 10px 10px 16px;transition:border-color .2s}.input-form:focus-within{border-color:var(--accent)}.input-box{flex:1;background:transparent;border:none;outline:none;color:var(--text);font-size:14.5px;font-family:inherit;line-height:1.5;resize:none;max-height:200px;padding:2px 0}.input-box::placeholder{color:var(--text-muted)}.input-box:disabled{opacity:.5;cursor:not-allowed}.send-btn{width:36px;height:36px;border-radius:10px;background:var(--accent);border:none;cursor:pointer;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,opacity .15s,transform .1s}.send-btn:hover:not(:disabled){background:var(--accent-hover);transform:scale(1.05)}.send-btn:disabled{opacity:.35;cursor:not-allowed}.send-btn svg{width:16px;height:16px}.disclaimer{text-align:center;font-size:11.5px;color:var(--text-muted);margin-top:10px}@media (max-width: 600px){.chat-area{padding:20px 14px 12px}.input-area{padding:10px 14px 16px}.bubble{max-width:92%}}
