:root{color-scheme:dark;--bg: #0f0f12;--thread: #18181c;--surface: #232328;--border: #2e2e36;--text: #ececf1;--muted: #8e8ea0;--accent: #10a37f;--accent-dim: #1a7f64;--user-bubble: #343541;--assistant-bubble: transparent;--error-bg: #3d1f1f;--error-border: #6b2a2a}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:Söhne,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}.app-shell{height:100%;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden}.chat-header{flex-shrink:0;border-bottom:1px solid var(--border);background:color-mix(in oklab,var(--bg) 85%,var(--surface));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:12px 16px}.brand{max-width:768px;margin:0 auto;display:flex;align-items:center;gap:12px}.brand-mark{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,var(--accent) 0%,#0d8f6e 100%);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.brand-title{margin:0;font-size:15px;font-weight:600;letter-spacing:.01em}.brand-sub{margin:2px 0 0;font-size:12px;color:var(--muted);line-height:1.35}.chat-thread{flex:1;overflow-y:auto;overflow-x:hidden;background:var(--thread)}.thread-inner{max-width:768px;margin:0 auto;padding:24px 16px 32px;min-height:100%}.thread-anchor{height:1px}.empty-state{padding:48px 0 24px;text-align:center}.empty-title{margin:0 0 8px;font-size:20px;font-weight:600}.empty-hint{margin:0 auto 24px;max-width:420px;font-size:14px;color:var(--muted);line-height:1.5}.suggestions{display:flex;flex-direction:column;gap:8px;max-width:560px;margin:0 auto}.suggestion-chip{text-align:left;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:14px;line-height:1.4;cursor:pointer;transition:background .15s,border-color .15s}.suggestion-chip:hover{background:color-mix(in oklab,var(--surface) 70%,var(--accent) 8%);border-color:color-mix(in oklab,var(--border) 70%,var(--accent) 30%)}.msg-row{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-bottom:1px solid color-mix(in oklab,var(--border) 40%,transparent)}.msg-row:last-of-type{border-bottom:none}.msg-row.user{background:linear-gradient(90deg,transparent 0%,color-mix(in oklab,var(--user-bubble) 35%,transparent) 100%);margin:0 -16px;padding:16px;border-radius:0;border-bottom:1px solid color-mix(in oklab,var(--border) 25%,transparent)}.avatar{width:36px;height:36px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.avatar-assistant{background:linear-gradient(145deg,#3d3d4a,#2a2a32);color:var(--accent);border:1px solid var(--border)}.avatar-user{background:var(--accent);color:#fff;font-size:10px}.msg-column{flex:1;min-width:0}.msg-meta{display:flex;align-items:center;gap:8px;margin-bottom:6px}.msg-name{font-size:13px;font-weight:600;color:var(--text)}.msg-badge{font-size:11px;font-weight:500;color:var(--accent);text-transform:uppercase;letter-spacing:.06em;animation:pulse-soft 1.4s ease-in-out infinite}@keyframes pulse-soft{0%,to{opacity:.85}50%{opacity:1}}.thinking-bubble{display:inline-flex;align-items:center;padding:10px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--border)}.thinking-dots{display:inline-flex;gap:5px;align-items:center}.thinking-dots .dot{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:bounce-dot 1.2s ease-in-out infinite}.thinking-dots .dot:nth-child(2){animation-delay:.15s}.thinking-dots .dot:nth-child(3){animation-delay:.3s}@keyframes bounce-dot{0%,80%,to{transform:translateY(0);opacity:.45}40%{transform:translateY(-5px);opacity:1}}.bubble{font-size:15px;line-height:1.65;color:var(--text)}.bubble.user{padding:12px 14px;border-radius:14px;background:var(--user-bubble);border:1px solid color-mix(in oklab,var(--border) 80%,transparent)}.bubble.assistant{padding:0}.bubble.assistant p:first-child{margin-top:0}.bubble.assistant p:last-child{margin-bottom:0}.assistant-body,.md-root{width:100%}.md-p{margin:.55rem 0}.md-p:first-child{margin-top:0}.md-p:last-child{margin-bottom:0}.bubble table{width:100%;border-collapse:collapse;margin:12px 0;font-size:14px;border-radius:8px;overflow:hidden;border:1px solid var(--border)}.bubble th,.bubble td{border:1px solid var(--border);padding:8px 10px;text-align:left}.bubble th{background:var(--surface)}.bubble img{max-width:100%;border-radius:10px;margin:12px 0;border:1px solid var(--border)}.bubble code{background:var(--surface);padding:2px 6px;border-radius:4px;font-size:.9em}.bubble pre{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:12px;overflow:auto}.bubble pre code{background:none;padding:0}.md-table-wrap{margin:16px 0}.md-table-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:6px}.md-h2{margin:1.35rem 0 .55rem;font-size:1.05rem;font-weight:650;letter-spacing:.02em;color:var(--text);padding-bottom:8px;border-bottom:1px solid var(--border)}.md-h2:first-child{margin-top:0}.md-h3{margin:1rem 0 .4rem;font-size:.95rem;font-weight:600;color:color-mix(in oklab,var(--text) 92%,var(--muted))}.md-ul,.md-ol{margin:.45rem 0 .65rem;padding-left:1.35rem;line-height:1.55}.md-ul li,.md-ol li{margin:.25rem 0}.md-strong{color:color-mix(in oklab,var(--accent) 22%,var(--text));font-weight:650}.md-table-scroll{margin:14px 0;border-radius:12px;border:1px solid var(--border);overflow-x:auto;background:color-mix(in oklab,var(--surface) 55%,transparent);-webkit-overflow-scrolling:touch}.md-table-scroll table{width:100%;min-width:420px;border-collapse:collapse;font-size:14px;margin:0;border:none}.md-table-scroll th,.md-table-scroll td{padding:10px 14px;border-bottom:1px solid color-mix(in oklab,var(--border) 85%,transparent);vertical-align:top}.md-table-scroll tbody tr:nth-child(2n){background:color-mix(in oklab,var(--surface) 35%,transparent)}.md-table-scroll tbody tr:last-child td{border-bottom:none}.md-table-scroll thead th{position:sticky;top:0;background:var(--surface);font-weight:600;font-size:13px;text-transform:none;z-index:1;box-shadow:0 1px 0 var(--border)}.md-chart-figure{margin:18px 0;padding:0;border-radius:14px;border:1px solid var(--border);background:color-mix(in oklab,var(--surface) 60%,transparent);overflow:hidden}.md-chart-figure:before{content:"Chart";display:block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:10px 14px 0}.md-chart-img{display:block;width:100%;max-width:min(100%,720px);height:auto;margin:0;border:none;border-radius:0;box-shadow:none}.md-chart-caption{margin:0;padding:8px 14px 12px;font-size:13px;color:var(--muted);line-height:1.4;border-top:1px solid color-mix(in oklab,var(--border) 70%,transparent)}.error-banner{flex-shrink:0;max-width:768px;width:calc(100% - 32px);margin:0 auto 8px;padding:10px 14px;border-radius:10px;border:1px solid var(--error-border);background:var(--error-bg);color:#fecaca;font-size:13px;white-space:pre-wrap}.chat-footer{flex-shrink:0;padding:12px 16px 20px;background:linear-gradient(180deg,transparent 0%,var(--bg) 28%);border-top:1px solid var(--border)}.composer{max-width:768px;margin:0 auto}.composer-inner{display:flex;align-items:flex-end;gap:10px;padding:10px 12px;border-radius:18px;border:1px solid var(--border);background:var(--surface);box-shadow:0 4px 24px #00000040}.composer-inner:focus-within{border-color:color-mix(in oklab,var(--accent) 45%,var(--border));box-shadow:0 0 0 1px color-mix(in oklab,var(--accent) 25%,transparent),0 4px 24px #00000040}.composer-input{flex:1;border:none;background:transparent;color:var(--text);font:inherit;font-size:15px;line-height:1.5;resize:none;min-height:24px;max-height:200px;outline:none;padding:4px 4px 4px 6px}.composer-input::placeholder{color:var(--muted)}.composer-send{flex-shrink:0;width:40px;height:40px;border:none;border-radius:10px;background:var(--accent);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,transform .1s}.composer-send:hover:not(:disabled){background:var(--accent-dim)}.composer-send:disabled{opacity:.45;cursor:not-allowed}.send-spinner{width:18px;height:18px;border:2px solid color-mix(in oklab,#fff 35%,transparent);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.composer-hint{margin:10px 8px 0;font-size:11px;color:var(--muted);text-align:center;line-height:1.4}.composer-hint strong{color:color-mix(in oklab,var(--accent) 35%,var(--text));font-weight:600}@media(max-width:600px){.brand-sub{display:none}.empty-title{font-size:18px}}
