:root{--bg:#0f1012;--panel:#17191d;--panel2:#1d2025;--panel3:#22262d;--line:#292d34;--text:#eceff3;--muted:#8d949e;--accent:#e6ebf5;--accentText:#101216;--good:#7fe0a4;--shadow:0 18px 50px rgba(0,0,0,.32)}*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;background:var(--bg);color:var(--text);font:14px Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.app{display:flex;height:100vh}.sidebar{width:248px;background:#121316;border-right:1px solid #23262b;padding:18px 12px;display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;padding:4px 8px 20px}.brandmark,.orb{background:var(--accent);color:var(--accentText);display:grid;place-items:center;font-weight:800}.brandmark{width:30px;height:30px;border-radius:8px}.brand b{display:block;font-size:14px}.brand span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.new,.nav,.tiny,.iconBtn,.toolLink{font:inherit}.new{width:100%;border:1px solid #343941;background:#1a1c20;color:#f2f4f8;padding:10px 12px;border-radius:8px;text-align:left;cursor:pointer}.section{display:flex;justify-content:space-between;align-items:center;color:#686f79;font-size:10px;font-weight:700;letter-spacing:.12em;margin:25px 8px 7px}.versionBadge{letter-spacing:.08em;color:#555d69}.nav{width:100%;border:0;background:transparent;color:#aeb4bd;text-align:left;padding:10px 10px;border-radius:8px;display:flex;gap:10px;align-items:center;cursor:pointer}.nav.active,.nav:hover{background:#202329;color:#fff}.chatList{overflow:auto;min-height:40px;max-height:280px}.chatItem{display:flex;align-items:center;gap:4px;padding:2px 0;margin:2px 0;border-radius:7px;color:#939aa4}.chatItem.active,.chatItem:hover{background:#1c1f24;color:#edf0f5}.chatOpen{flex:1;min-width:0;border:0;background:transparent;color:inherit;text-align:left;padding:8px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font:inherit}.chatActions{display:flex;gap:2px;opacity:0;transition:opacity .12s}.chatItem:hover .chatActions,.chatItem.active .chatActions{opacity:1}.chatActions button{border:0;background:transparent;color:#7f8791;border-radius:5px;width:23px;height:23px;cursor:pointer;font:inherit}.chatActions button:hover{background:#2a2e35;color:#f0f2f6}.chatsHead #folderLabel{font-weight:500;letter-spacing:0;color:#737a84}.sidebarBottom{margin-top:auto;color:#727a85;font-size:11px;display:flex;gap:8px;align-items:center;padding:10px}.statusDot{width:7px;height:7px;border-radius:50%;background:var(--good)}.main{flex:1;display:flex;flex-direction:column;min-width:0}.top{height:56px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px}.title{font-weight:600}.topMeta{color:#7f8791;font-size:12px;display:flex;gap:8px;align-items:center}.sep{color:#3b4048}.view{flex:1;min-height:0}.hidden{display:none!important} #chatView{display:flex;flex-direction:column;min-height:0}.messages{flex:1;min-height:0;height:auto;overflow:auto;padding:40px 10% 30px}.welcome{text-align:center;margin:11vh auto 0;max-width:720px}.orb{margin:auto;width:58px;height:58px;border-radius:16px;font-size:25px}.welcome h1{font-size:30px;margin:20px 0 8px}.welcome p{color:var(--muted)}.chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:25px}.chips button{background:#17191d;border:1px solid #2c3037;color:#c7ccd3;padding:9px 12px;border-radius:8px;cursor:pointer}.msg{max-width:900px;margin:0 auto 28px}.msg .role{font-size:10px;color:#7f8791;margin-bottom:7px;text-transform:uppercase;letter-spacing:.09em}.bubble{line-height:1.6}.bubble p{margin:0 0 10px}.bubble pre{position:relative;background:#0b0c0e;border:1px solid #25282e;padding:46px 16px 16px;border-radius:10px;overflow:auto;margin:12px 0;color:#e6eaf0}.bubble pre code{background:transparent;border:0;padding:0;color:inherit;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre}.codeWrap{position:relative}.codeBar{display:flex;gap:6px;position:absolute;top:8px;right:8px;left:8px;align-items:center}.codeTitle{font-size:10px;color:#737c88;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:auto}.codeBtn{background:#1d2025;border:1px solid #363b43;color:#bfc6cf;border-radius:6px;padding:4px 7px;font-size:11px;cursor:pointer}.toolActivityDock{width:min(900px,84%);margin:0 auto 8px;flex:0 0 auto}.toolActivity{margin:0;padding:9px 12px;}.thinkingActivity{display:flex;align-items:center;gap:4px}.thinkingDot{width:5px;height:5px;border-radius:50%;background:#8c949f;animation:thinkPulse 1.2s infinite ease-in-out}.thinkingDot:nth-child(2){animation-delay:.15s}.thinkingDot:nth-child(3){animation-delay:.3s}@keyframes thinkPulse{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}.thinkingMsg .bubble{color:#9ea6b0;display:flex;align-items:center;gap:5px}.thinkingDots{display:inline-flex;gap:3px}.thinkingDots i{display:block;width:5px;height:5px;border-radius:50%;background:#9ea6b0;animation:thinkPulse 1.2s infinite ease-in-out}.thinkingDots i:nth-child(2){animation-delay:.15s}.thinkingDots i:nth-child(3){animation-delay:.3s}.composer{position:relative;flex:0 0 auto;margin:0 auto 18px;width:min(920px,84%);border:1px solid #343941;background:#17191d;border-radius:13px;box-shadow:var(--shadow);overflow:hidden}.attachmentTray{display:flex;gap:6px;flex-wrap:wrap;padding:8px 10px 0}.attachment{background:#202329;border:1px solid #30343b;border-radius:7px;padding:6px 8px;color:#c9cfd8;font-size:11px;display:flex;gap:8px;align-items:center}.attachment button{background:none;border:0;color:#7d8691;cursor:pointer}.attachmentThumb{width:42px;height:42px;object-fit:cover;border-radius:7px;border:1px solid #343941;background:#0c0d0f;display:block}.composer textarea{width:100%;background:transparent;color:#fff;border:0;outline:0;resize:none;padding:15px;display:block;font:inherit;min-height:54px;max-height:216px;line-height:1.45}.composer textarea:focus{background:#16181c}.composerModelRow{display:flex;gap:8px;padding:8px 10px 0}.composerModelRow select{min-width:0;background:#121419;color:#d9dee6;border:1px solid #2e333a;border-radius:7px;padding:7px 8px;outline:none}.composerModelRow select:first-child{max-width:270px}.composerModelRow select:last-child{flex:1}.composeBar{display:flex;align-items:center;gap:12px;padding:7px 9px 9px;color:#858c96;font-size:11px}.composeLeft{display:flex;gap:12px;align-items:center}.hint{margin-left:auto}.composeBar #send{width:32px;height:32px;border-radius:8px;border:0;background:#e8edf7;color:#121417;font-weight:800;cursor:pointer}.toggle{display:flex;align-items:center;gap:5px;cursor:pointer}.toggle input{display:none}.toggle span{width:26px;height:15px;border-radius:20px;background:#3a3e45;display:inline-block;position:relative}.toggle span:after{content:"";position:absolute;width:11px;height:11px;border-radius:50%;background:#a8afb8;left:2px;top:2px;transition:.15s}.toggle input:checked+span{background:#e8edf7}.toggle input:checked+span:after{left:13px;background:#14171b}.toolLink{border:0;background:none;color:#aab2bc;cursor:pointer}.chatArea{display:flex;flex:1;min-height:0;height:auto}.chatArea .messages{height:auto;flex:1;min-width:0}.chatSources{width:280px;border-left:1px solid var(--line);padding:24px 16px 18px;overflow:auto;background:#111317;flex-shrink:0}.sourceRailHead{display:flex;justify-content:space-between;align-items:center;color:#cfd4dc;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding-bottom:10px}.sourceRailHead span:last-child{color:#707985;font-weight:600}.sourceRailList{display:flex;flex-direction:column;gap:8px}.railSource{padding:10px 0;border-top:1px solid var(--line)}.railSource a{color:#dce8ff;text-decoration:none;font-size:11px;line-height:1.35;display:block}.railSource a:hover{text-decoration:underline}.railUrl{margin-top:4px;color:#68717c;font-size:9px;line-height:1.3;word-break:break-all}.toolActivity{max-width:900px;margin:0 auto 16px;padding:10px 12px;background:#121419;border:1px solid #252930;border-radius:8px;color:#7f8791;font-size:11px}.activityItem+.activityItem{margin-top:5px}.codePackageBar{max-width:900px;margin:6px auto 26px}.packageBtn{background:#20242a;border:1px solid #353b44;color:#d5dae2;border-radius:7px;padding:7px 10px;cursor:pointer;font-size:11px}.packageBtn:hover,.codeBtn:hover{background:#282d35}.panel{height:calc(100% - 28px);overflow:auto;max-width:1080px;margin:28px auto;padding:28px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.1)}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:800;color:#737b86;margin-bottom:8px}.panel h2{margin:0 0 7px;font-size:23px}.panel h3{margin:0}.muted{color:var(--muted)}.row,.memoryAdd{display:flex;gap:8px;margin:18px 0}.row input,.memoryAdd input,.memoryAdd select,.grid input,.searchPanel input{background:#0f1012;color:#eee;border:1px solid #30343b;border-radius:8px;padding:11px;outline:none}.row input,.memoryAdd input{flex:1}.memoryAdd select{width:130px}.row button,.actions button,.panelTitle>button,.providerPicker button{background:var(--accent);color:var(--accentText);border:0;border-radius:8px;padding:10px 14px;font-weight:650;cursor:pointer}.actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}.secondary{background:#292d34!important;color:#ddd!important}.grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.grid label{display:flex;flex-direction:column;gap:7px;color:#aab0b8;font-size:12px}.grid input{width:100%}.readonlyField{color:#89919c!important}.providerPicker{display:flex;align-items:end;gap:12px;margin:18px 0}.providerPicker label{display:flex;flex-direction:column;gap:7px;color:#aab0b8;font-size:12px}.providerPicker select{min-width:300px;background:#0f1012;color:#eee;border:1px solid #30343b;border-radius:8px;padding:11px;outline:none}hr{border:0;border-top:1px solid var(--line);margin:25px 0}.setupBox{display:grid;grid-template-columns:auto 1fr 1fr;gap:10px;padding:13px 14px;border:1px solid #2b2f36;background:#131518;border-radius:9px;color:#aab1ba;font-size:12px}.setupBox b{color:#e2e6ec}.providerCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin-top:18px}.providerCard{border:1px solid var(--line);background:#131518;border-radius:10px;padding:12px}.providerCard strong{display:block}.providerCard .providerMeta{font-size:10px;color:#7e8791;margin-top:5px;line-height:1.4}.providerCard .providerActions{margin-top:10px;display:flex;gap:7px}.providerCard button{background:#20242a;color:#cfd5dd;border:1px solid #343a43;border-radius:6px;padding:5px 8px;cursor:pointer}.providerCard button:hover{background:#292f38}.mem{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:13px 0}.memMeta{font-size:10px;color:#747c87;margin-top:4px}.mem button{background:none;border:0;color:#858c96;cursor:pointer}.memoryPanel{max-width:1000px}.memoryImport{width:100%;min-height:360px;max-height:62vh;box-sizing:border-box;background:#0f1012;color:#eee;border:1px solid #30343b;border-radius:8px;padding:11px;outline:none;resize:vertical;font:12px ui-monospace,SFMono-Regular,Consolas,monospace;margin-top:10px}.memoryList{max-height:42vh;overflow:auto}.settingsNote{font-size:11px;color:var(--muted);line-height:1.4}.terminalHead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.terminalBadge{background:#13161a;border:1px solid #30353d;color:#bfc7d1;border-radius:999px;padding:7px 10px;font-size:11px;white-space:nowrap}.terminalRow{display:flex;gap:8px;margin:16px 0}.terminalRow input{flex:1;background:#0f1012;color:#eee;border:1px solid #30343b;border-radius:8px;padding:11px;outline:none}.terminalCommand{width:100%;box-sizing:border-box;min-height:170px;background:#090a0c;color:#e9edf2;border:1px solid #30343b;border-radius:9px;padding:13px;font:12px ui-monospace,SFMono-Regular,Consolas,monospace;outline:none;resize:vertical}.terminalConsole{background:#090a0c;border:1px solid #25282e;border-radius:8px;padding:12px;min-height:120px;max-height:360px;overflow:auto;white-space:pre-wrap;color:#d2d8e0}.terminalHint{font-size:11px;align-self:center}.result{padding:14px 0;border-top:1px solid var(--line);position:relative}.resultHead{display:flex;gap:10px;align-items:center;justify-content:space-between}.result a{color:#dce8ff;text-decoration:none;font-weight:600}.result p{color:#949ba5;margin:6px 0}.result .snippet{font-size:12px;line-height:1.4}.result .url{font-size:10px;color:#68717c;word-break:break-all}.readBtn{background:#202329;border:1px solid #343941;color:#cdd3dc;border-radius:6px;padding:5px 8px;font-size:11px;cursor:pointer}.pageRead{margin-top:9px;color:#adb4be}.pageRead summary{cursor:pointer;color:#cbd3dd;font-size:11px}.pageText{margin-top:9px;max-height:280px;overflow:auto;white-space:pre-wrap;background:#111317;border:1px solid #252a31;border-radius:8px;padding:10px;font-size:11px;line-height:1.5}.pageLinks{margin-top:9px;font-size:10px;color:#818995}.pageLinks a{color:#b8c9ea;text-decoration:none;margin-right:6px}.researchLayout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;max-width:1180px;height:calc(100% - 32px);margin:16px auto}.researchCard,.sourcePanel{margin:0;min-height:0}.researchOutput{margin-top:18px;height:calc(100% - 150px);overflow:auto;border-top:1px solid var(--line);padding-top:18px}.statusBox{padding:10px 12px;background:#131518;border:1px solid #2a2e35;border-radius:8px;color:#a4abb4;font-size:12px}.sourcePanel{overflow:hidden}.sourcePanel .panelTitle{display:flex;justify-content:space-between;align-items:center}.sourcePanel> .sources{overflow:auto;height:calc(100% - 40px);margin-top:10px}.source{padding:12px 0;border-top:1px solid var(--line)}.source a{color:#dce8ff;text-decoration:none;font-size:12px;font-weight:600}.source .url{color:#6f7883;font-size:10px;margin-top:4px;word-break:break-all}.modal{position:fixed;inset:0;background:rgba(0,0,0,.62);display:grid;place-items:center;z-index:20}.modalCard{width:min(820px,88vw);background:#15171b;border:1px solid #343941;border-radius:14px;padding:18px;box-shadow:var(--shadow)}.modalCard select{background:#0f1012;color:#eee;border:1px solid #30343b;border-radius:7px;padding:9px}.modalCard textarea{width:100%;height:320px;margin-top:10px;background:#0b0c0e;color:#e7eaf0;border:1px solid #30343b;border-radius:8px;padding:12px;font:12px ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical}.panelTitle{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.x{background:none;border:0;color:#a2a9b2;font-size:22px;cursor:pointer}.runOutput{background:#090a0c;border:1px solid #25282e;border-radius:8px;padding:12px;min-height:70px;max-height:220px;overflow:auto;white-space:pre-wrap;color:#cfd5dd}@media(max-width:900px){.sidebar{width:220px}.messages{padding-left:6%;padding-right:6%}.researchLayout{grid-template-columns:1fr}.sourcePanel{display:none}.composer{width:92%}}@media(max-width:680px){.sidebar{width:190px}.topMeta{display:none}.grid{grid-template-columns:1fr}.hint{display:none}.composeLeft{gap:7px;flex-wrap:wrap}.composerModelRow{flex-direction:column}.composerModelRow select:first-child{max-width:none}.researchLayout{margin:10px;height:calc(100% - 20px)}.panel{margin:10px;padding:18px}.providerPicker{flex-direction:column;align-items:stretch}.providerPicker select{min-width:0;width:100%}} .marketCard{max-width:900px;margin:4px auto 18px;background:#222325;border:1px solid #3a3b3f;border-radius:18px;padding:20px 20px 18px;box-shadow:0 14px 40px rgba(0,0,0,.22);color:#f0f2f5}.marketHead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.marketName{font-size:14px;font-weight:600;letter-spacing:.01em}.marketName span{color:#a6abb3;font-weight:500}.marketExchange{margin-top:4px;color:#9aa0a8;font-size:10px}.marketHead a{font-size:10px;color:#aebbd4;text-decoration:none}.marketHead a:hover{text-decoration:underline}.marketPrice{font-size:28px;font-weight:650;margin-top:10px;letter-spacing:-.03em}.marketChange{font-size:12px;margin-top:4px}.marketChange.up{color:#49d37d}.marketChange.down{color:#ff6879}.marketTime{color:#9aa0a8;font-size:10px;margin-top:7px;text-transform:capitalize}.marketRule{height:1px;background:#3a3b3f;margin:16px 0 10px}.marketRange{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#b3b7bd;font-size:10px}.marketRange span{padding:7px 13px;border-radius:999px}.marketRange .active{background:#131415;color:#fff;font-weight:650}.marketChart{width:100%;height:300px;display:block;margin-top:8px}.marketMetrics{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 22px;margin-top:8px}.marketMetrics div{display:flex;justify-content:space-between;gap:12px;font-size:11px}.marketMetrics span{color:#a7adb5}.marketMetrics b{color:#f0f2f5;font-weight:500}.codeWrap{background:#111316;border:1px solid #2c3137;border-radius:10px;overflow:hidden;margin:12px 0 16px}.codeBar{display:flex;align-items:center;gap:6px;padding:7px 8px;border-bottom:1px solid #2c3137;background:#17191d}.codeTitle{margin-right:auto;font-size:10px;color:#9da5af}.codeBtn{background:#20242a;color:#cfd5dd;border:1px solid #343a43;border-radius:6px;padding:4px 7px;font-size:10px;cursor:pointer}.codeBtn:hover{background:#292f37}.codeWrap pre{margin:0;padding:14px;overflow:auto;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;color:#e7ebf0}.attachmentTray{max-height:120px;overflow:auto;padding:6px 8px 0}.attachment{display:flex;align-items:center;gap:8px;padding:6px 8px;margin-bottom:5px;background:#15171b;border:1px solid #2a2e35;border-radius:8px;color:#bfc6cf;font-size:11px}.fieldHint{color:#777f89;font-size:10px}.hidden{display:none!important} @media(max-width:760px){.marketMetrics{grid-template-columns:1fr 1fr}.marketRange span{padding:6px 7px}.marketChart{height:230px}} .toolActivityDock .toolActivity{max-width:none}.thinkingMsg .role{color:#7f8791}.hidden{display:none!important}.composerModelRow select{cursor:pointer} /* V34 conversation hierarchy */ .msg.userMessage{display:flex;flex-direction:column;align-items:flex-end;margin-bottom:34px} .msg.userMessage .userRole{width:min(900px,84%);font-size:15px;font-weight:700;letter-spacing:.01em;text-transform:none;color:#f5f7fa;display:flex;align-items:center;gap:8px;margin-bottom:8px} .roleBadge{width:10px;height:10px;border-radius:50%;display:inline-grid;place-items:center;font-size:7px;color:#0e1208;background:#d3ff72;box-shadow:0 0 0 4px rgba(211,255,114,.08)} .msg.userMessage .bubble{width:min(900px,84%);max-width:min(900px,84%);padding:16px 20px;border-radius:16px 6px 16px 16px;background:#d9ff79;color:#101307;border:1px solid #efffb5;box-shadow:0 10px 34px rgba(170,220,60,.13);font-size:16px;line-height:1.6;font-weight:600} .msg.userMessage .bubble p{color:inherit} .sentAttachments{width:min(900px,84%);display:flex;flex-direction:column;gap:7px;margin-bottom:9px;align-items:flex-end} .sentAttachment{display:flex;align-items:center;gap:10px;width:min(520px,100%);padding:10px 12px;border-radius:11px;background:#15181d;border:1px solid #343a43;color:#eef1f4;text-align:left} .sentAttachment strong{display:block;font-size:12px;color:#f5f7fb} .sentAttachment span{display:block;margin-top:2px;font-size:10px;color:#9ba3ad} .sentAttachment code{display:block;margin-top:4px;font:10px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;color:#68727e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:460px} .sentAttachmentThumb{width:46px;height:46px;object-fit:cover;border-radius:8px;border:1px solid #343a43;background:#0b0d10;flex:none}