.app-status{height:100vh;display:grid;place-items:center;font-size:1rem}.app-shell{--bg: #121212;--surface: #1c1c1c;--surface-elevated: #252525;--text: #ffffff;--text-muted: #a0a0a0;--subtitle: #a0a0a0;--border: #333333;--border-strong: #333333;--bubble-human: #00c8b3;--bubble-human-text: #ffffff;--bubble-assistant: #1c1c1c;--bubble-assistant-text: #ffffff;--accent: #00c8b3;--accent-border: #00c8b3;--input-bg: #121212;--shadow: rgba(0, 0, 0, .55);--backdrop: rgba(0, 0, 0, .65);--semantic-positive: #00c8b3;--semantic-negative: #ff5252;--list-active-border: #00c8b3;--header-bg: #1c1c1c;--header-text: #ffffff;--header-subtitle: #a0a0a0;display:flex;flex-direction:column;height:100vh;background:var(--bg);color:var(--text)}.app-shell:not([data-theme=light]) .chat-main,.app-shell:not([data-theme=light]) .sidebar,.app-shell:not([data-theme=light]) .message-list,.app-shell:not([data-theme=light]) .composer textarea{scrollbar-width:thin;scrollbar-color:#444444 #121212}.app-shell:not([data-theme=light]) .chat-main::-webkit-scrollbar,.app-shell:not([data-theme=light]) .sidebar::-webkit-scrollbar,.app-shell:not([data-theme=light]) .message-list::-webkit-scrollbar,.app-shell:not([data-theme=light]) .composer textarea::-webkit-scrollbar{width:8px;height:8px}.app-shell:not([data-theme=light]) .chat-main::-webkit-scrollbar-track,.app-shell:not([data-theme=light]) .sidebar::-webkit-scrollbar-track,.app-shell:not([data-theme=light]) .message-list::-webkit-scrollbar-track,.app-shell:not([data-theme=light]) .composer textarea::-webkit-scrollbar-track{background:#121212}.app-shell:not([data-theme=light]) .chat-main::-webkit-scrollbar-thumb,.app-shell:not([data-theme=light]) .sidebar::-webkit-scrollbar-thumb,.app-shell:not([data-theme=light]) .message-list::-webkit-scrollbar-thumb,.app-shell:not([data-theme=light]) .composer textarea::-webkit-scrollbar-thumb{background:#444;border-radius:4px}.app-shell:not([data-theme=light]) .chart-bubble-wrap{scrollbar-width:thin;scrollbar-color:#444444 #121212}.app-shell:not([data-theme=light]) .chart-bubble-wrap::-webkit-scrollbar{height:8px}.app-shell:not([data-theme=light]) .chart-bubble-wrap::-webkit-scrollbar-track{background:#121212}.app-shell:not([data-theme=light]) .chart-bubble-wrap::-webkit-scrollbar-thumb{background:#444;border-radius:4px}.app-shell[data-theme=light]{--bg: #f5f5f5;--surface: #ffffff;--surface-elevated: #eeeeee;--text: #333333;--text-muted: #757575;--subtitle: #757575;--border: #e0e0e0;--border-strong: #d4d4d4;--bubble-human: #274DC3;--bubble-human-text: #ffffff;--bubble-assistant: #ffffff;--bubble-assistant-text: #333333;--accent: #274DC3;--accent-border: #003838;--input-bg: #ffffff;--shadow: rgba(0, 0, 0, .08);--backdrop: rgba(0, 0, 0, .35);--header-bg: #274DC3;--header-text: #ffffff;--header-subtitle: rgba(255, 255, 255, .82);--list-active-border: #00a699;--semantic-positive: #00a699;--semantic-negative: #f44336;--semantic-neutral: #00aeef}.sidebar-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:25;border:none;padding:0;margin:0;cursor:pointer;background:var(--backdrop)}.sidebar{position:fixed;top:0;left:0;bottom:0;width:min(280px,88vw);z-index:30;transform:translate(-100%);transition:transform .22s ease;border-right:1px solid var(--border);padding:1rem;overflow:auto;background:var(--surface);box-shadow:none}.sidebar.open{transform:translate(0);box-shadow:10px 0 30px var(--shadow)}.sidebar-header{margin-bottom:.75rem}.sidebar-header h2{margin:0;font-size:1rem;font-weight:600}.sidebar .new-chat-btn,.sidebar .conversation-list button{border:1px solid var(--border-strong);background:var(--input-bg);color:var(--text);border-radius:.5rem;cursor:pointer}.new-chat-btn{width:100%;padding:.625rem;margin-bottom:.75rem}.conversation-list{display:grid;gap:.5rem}.conversation-list button{width:100%;text-align:left;padding:.625rem}.conversation-list button.active{border-color:var(--list-active-border, var(--accent-border));background:var(--surface-elevated)}.chat-main,.chat-body{flex:1;display:flex;flex-direction:column;min-height:0;min-width:0}.chat-header{flex-shrink:0;display:grid;grid-template-columns:minmax(2.5rem,1fr) auto minmax(2.5rem,1fr);align-items:center;padding:.75rem 1rem;border-bottom:1px solid color-mix(in srgb,var(--header-bg, var(--bg)) 82%,#000000);background:var(--header-bg, var(--bg));color:var(--header-text, var(--text))}.chat-header-spacer{min-height:1px}.chat-header-center{display:flex;justify-content:center;min-width:0}.chat-title-btn{display:flex;flex-direction:column;align-items:center;gap:.15rem;margin:0;padding:.25rem .75rem;border:none;background:transparent;color:inherit;cursor:pointer;font:inherit;max-width:100%}.app-shell[data-theme=light] .chat-header .chat-title-btn:focus-visible{outline:2px solid rgba(255,255,255,.65);outline-offset:2px;border-radius:.35rem}.chat-brand{font-size:1.125rem;font-weight:600;letter-spacing:-.02em}.chat-subtitle{font-size:.78rem;color:var(--header-subtitle, var(--subtitle));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(280px,70vw)}.chat-header-actions{display:flex;justify-content:flex-end;align-items:center}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;border:none;border-radius:999px;background:transparent;color:var(--text);cursor:pointer}.theme-toggle:hover{background:var(--surface-elevated)}.app-shell[data-theme=light] .chat-header .theme-toggle:hover{background:#ffffff24}.app-shell[data-theme=light] .chat-header .theme-toggle:focus-visible{outline:2px solid rgba(255,255,255,.55);outline-offset:2px}.token-card{flex-shrink:0;margin:.75rem 1rem 0;border:1px solid var(--border-strong);border-radius:.75rem;padding:.75rem;background:var(--surface)}.token-input-row{display:flex;gap:.5rem}.token-input-row input{flex:1}.message-list{flex:1;min-height:0;overflow-y:auto;padding:.75rem 1rem 1rem;display:flex;flex-direction:column;gap:.5rem}.message-row{display:flex;width:100%}.message-row.human{justify-content:flex-end}.message-row.assistant{justify-content:flex-start}.message-bubble{max-width:min(78%,28rem);padding:.55rem .85rem;border-radius:1.125rem;word-break:break-word}.message-bubble.human{background:var(--bubble-human);color:var(--bubble-human-text);border-bottom-right-radius:.25rem;text-align:left}.message-bubble.assistant{background:var(--bubble-assistant);color:var(--bubble-assistant-text);border:1px solid var(--border-strong);box-sizing:border-box;border-bottom-left-radius:.25rem;text-align:left}.message-bubble.message-bubble--chart{max-width:min(96%,56rem)}.bubble-text{white-space:pre-wrap;font-size:.9375rem;line-height:1.45}.recommended-tickers{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.55rem}.message-bubble.human .recommended-tickers{justify-content:flex-start}.ticker-chip{border:1px solid color-mix(in srgb,var(--bubble-assistant-text) 28%,transparent);border-radius:999px;padding:.2rem .55rem;font-size:.8125rem;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.02em;background:color-mix(in srgb,var(--input-bg) 70%,var(--bubble-assistant));color:inherit;cursor:pointer}.ticker-chip:hover{border-color:color-mix(in srgb,var(--accent-border) 55%,var(--border-strong))}.message-bubble.human .ticker-chip{border-color:#ffffff59;background:#ffffff2e;color:var(--bubble-human-text)}.message-bubble.human .ticker-chip:hover{border-color:#ffffff8c;background:#ffffff47}.table-wrap{margin-top:.35rem}.table-wrap:first-child{margin-top:0}.table-title{font-size:.8rem;font-weight:600;margin-bottom:.35rem;color:inherit;opacity:.95}.table-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border-radius:.5rem;border:1px solid var(--border-strong)}.block-table{width:max-content;min-width:100%;table-layout:auto;border-collapse:collapse;font-size:.8125rem;font-variant-numeric:tabular-nums}.block-table th,.block-table td{box-sizing:border-box;min-width:6rem;padding:.4rem .65rem;border-bottom:1px solid var(--border-strong);text-align:left;vertical-align:top;white-space:nowrap}.block-table th:first-child,.block-table td:first-child{min-width:8.5rem}.block-table th{font-weight:600;background:var(--surface-elevated)}.block-table tr:last-child td{border-bottom:none}.bubble-pre{margin:0;max-height:220px;overflow:auto;font-size:.75rem;white-space:pre-wrap;word-break:break-word}.chart-bubble-wrap{width:100%;max-width:100%;margin:0;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.chart-loading{display:block;padding:.75rem 0;font-size:.8125rem;color:var(--text-muted)}.chart-fallback.bubble-pre{max-height:220px}.message-row.message-row--strip{flex-direction:column;align-items:stretch;width:100%;max-width:100%}.message-row.message-row--strip.message-row.human,.message-row.message-row--strip.message-row.assistant{justify-content:flex-start}.block-media-strip-viewport{container-type:inline-size;container-name:bubbleStrip;width:calc(100% - .5rem);max-width:100%;margin-inline:.25rem;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.block-media-strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:.65rem;width:max-content;min-height:var(--strip-row-min-height, 380px)}.block-media-strip-viewport--human .block-media-strip{justify-content:flex-end}.block-media-strip-slot{flex:0 0 auto;display:flex;flex-direction:column;min-height:0}.message-row--strip .block-media-strip-slot>.message-bubble{width:calc(80cqw - .52rem);min-width:calc(80cqw - .52rem);max-width:calc(80cqw - .52rem);min-height:var(--strip-row-min-height, 380px);box-sizing:border-box;display:flex;flex-direction:column}.message-row--strip .block-media-strip-slot>.message-bubble.message-bubble--chart{width:calc((80cqw - .52rem)*2);min-width:calc((80cqw - .52rem)*2);max-width:calc((80cqw - .52rem)*2)}.strip-aux-footer{margin-top:.35rem;padding-inline:.35rem}.strip-aux-footer--assistant{text-align:left}.strip-aux-footer--human{text-align:right}.chart-bubble-wrap--strip{flex:1;min-height:0;display:flex;flex-direction:column}.block-media-strip-table-scroll{max-height:calc(var(--strip-row-min-height, 380px) - 5.5rem);overflow-y:auto}.message-row--strip .block-media-strip-slot>.message-bubble .table-wrap{flex:1;min-height:0;display:flex;flex-direction:column}.message-row--strip .block-media-strip-slot>.message-bubble .table-scroll{flex:1;min-height:0}.follow-up-block{margin:0;padding:0}.follow-up-heading{margin:0 0 .5rem;font-size:.68rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted)}.follow-up-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}.follow-up-item{display:block;width:100%;box-sizing:border-box;margin:0;padding:.55rem .75rem;border:1px solid color-mix(in srgb,var(--bubble-assistant-text) 22%,transparent);border-radius:.75rem;background:color-mix(in srgb,var(--input-bg) 85%,var(--bubble-assistant));color:var(--bubble-assistant-text);font:inherit;font-size:.875rem;line-height:1.45;text-align:left;cursor:pointer;white-space:normal;word-break:break-word;transition:background .15s ease,border-color .15s ease,transform .05s ease}.follow-up-item:hover{border-color:color-mix(in srgb,var(--accent-border) 65%,var(--border-strong));background:color-mix(in srgb,var(--surface-elevated) 40%,var(--bubble-assistant))}.follow-up-item:active{transform:scale(.99)}.message-bubble.human .follow-up-item{border-color:#ffffff47;background:#ffffff2e;color:var(--bubble-human-text)}.message-bubble.human .follow-up-item:hover{background:#ffffff42;border-color:#fff6}.sources-block{margin:0;padding:0}.sources-block--inline{margin-top:.55rem}.sources-heading{margin:0 0 .45rem;font-size:.68rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted)}.sources-list{display:flex;flex-wrap:wrap;gap:.4rem}.source-chip{display:inline-flex;align-items:center;gap:.4rem;max-width:14rem;padding:.2rem .55rem;border:1px solid color-mix(in srgb,var(--bubble-assistant-text) 28%,transparent);border-radius:999px;background:color-mix(in srgb,var(--input-bg) 70%,var(--bubble-assistant));color:inherit;font-size:.8125rem;line-height:1.25;text-decoration:none;transition:background .15s ease,border-color .15s ease}.source-chip:hover{border-color:color-mix(in srgb,var(--accent-border) 55%,var(--border-strong));background:color-mix(in srgb,var(--surface-elevated) 40%,var(--bubble-assistant))}.source-favicon{width:14px;height:14px;flex-shrink:0;border-radius:3px;object-fit:contain}.source-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.message-bubble.human .source-chip{border-color:#ffffff59;background:#ffffff2e;color:var(--bubble-human-text)}.message-bubble.human .source-chip:hover{border-color:#ffffff8c;background:#ffffff47}.message-status{display:block;margin-top:.4rem;font-size:.7rem}.message-status.subtle{color:var(--text-muted)}.message-status.error{color:var(--semantic-negative, #ff453a)}.message-bubble.human .message-status.subtle{color:#ffffffbf}.composer{flex-shrink:0;border-top:1px solid var(--border);padding:.75rem 1rem 1rem;display:grid;gap:.65rem;background:var(--bg)}.composer-footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.composer-char-count{margin-right:auto;font-size:.78rem;font-variant-numeric:tabular-nums;color:var(--text-muted)}.composer-char-count-over{color:var(--semantic-negative, #ff453a);font-weight:600}.composer textarea,.token-input-row input{resize:vertical;border-radius:1rem;border:1px solid var(--border-strong);background:var(--input-bg);color:var(--text);padding:.65rem .75rem;font:inherit}.composer button{justify-self:end;align-self:start;width:fit-content;height:fit-content;min-height:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--accent-border);background:var(--accent);color:#fff;border-radius:1rem;padding:.5rem 1rem;cursor:pointer;flex-shrink:0}.token-input-row button{justify-self:end;border:1px solid var(--accent-border);background:var(--accent);color:#fff;border-radius:1rem;padding:.5rem 1rem;cursor:pointer}.composer button:disabled{opacity:.55;cursor:not-allowed}.error-banner,.empty-state{margin:0;color:var(--semantic-negative, #ff453a);font-size:.85rem}.app-shell[data-theme=light] .empty-state{color:var(--text-muted)}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh}
