k:root{--bg:#071225;--bg-2:#0b1830;--panel:#0f1d39;--panel-2:#132544;--panel-3:#172c52;--border:#849ac42e;--border-strong:#849ac452;--text:#eef4ff;--muted:#97a7c9;--muted-2:#7082a6;--accent:#2f80ff;--accent-2:#5aa2ff;--accent-soft:#2f80ff24;--success:#5ce27f;--danger:#ff6b7a;--warning:#ffca5f;--input:#0b1730;--shadow:0 18px 50px #00000059;--radius-xl:24px;--radius-lg:18px;--radius-md:14px;--radius-sm:10px;color:var(--text);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(#06101f 0%,#09152a 100%);font-family:Manrope,system-ui,sans-serif}html,body,#root{background:radial-gradient(circle at 0 0,#346cff2e,#0000 28%),radial-gradient(circle at 100% 100%,#38bdf81a,#0000 24%),linear-gradient(#06101f 0%,#09152a 100%);min-height:100%;margin:0}*{box-sizing:border-box;font-family:inherit}body{color:var(--text)}button,input,textarea{font:inherit}button{cursor:pointer}img{max-width:100%;display:block}#root{width:100%}.appShell{min-height:100svh;padding:18px}.desktopLayout{grid-template-columns:280px 1fr;gap:18px;min-height:calc(100svh - 36px);display:grid}.desktopSidebar{border:1px solid var(--border);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:linear-gradient(#0a1730 0%,#08132a 100%);border-radius:28px;flex-direction:column;padding:18px;display:flex}.desktopSidebarTop{flex-direction:column;gap:14px;display:flex}.sidebarHeader{justify-content:space-between;align-items:center;display:flex}.sidebarHeader h3{color:#fff;letter-spacing:-.03em;margin:0;font-size:28px;font-weight:800}.sidebarCloseButton{color:var(--muted);background:0 0;border:none;font-size:24px;display:none}.newChatButton{color:#09142a;background:linear-gradient(#fff 0%,#f3f7ff 100%);border:1px solid #0000;border-radius:18px;height:56px;font-weight:800;transition:all .2s;box-shadow:0 8px 24px #0000002e}.newChatButton:hover{background:#fff;transform:translateY(-1px)}.chatSearchInput{border:1px solid var(--border-strong);height:46px;color:var(--text);background:#0a152a8c;border-radius:16px;outline:none;padding:0 16px}.chatSearchInput::placeholder{color:var(--muted)}.desktopChatList{flex-direction:column;gap:12px;min-height:0;margin-top:18px;display:flex;overflow:auto}.desktopChatItem{background:#132544b8;border:1px solid #97a7c91f;border-radius:18px;grid-template-columns:1fr auto;gap:10px;transition:all .2s;display:grid;overflow:hidden}.desktopChatItem.active{background:linear-gradient(#16294a 0%,#132240 100%);border-color:#2f80ff66;box-shadow:inset 0 0 0 1px #2f80ff1f}.desktopChatMain{color:inherit;text-align:left;background:0 0;border:none;padding:16px}.desktopChatTitleRow{justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;display:flex}.desktopChatTitle{color:#fff;font-size:18px;font-weight:700;line-height:1.2}.chatModelBadge{letter-spacing:.02em;color:#9ed0ff;white-space:nowrap;background:#2f80ff1f;border:1px solid #2f80ff3d;border-radius:999px;align-items:center;padding:5px 10px;font-size:11px;font-weight:700;display:inline-flex}.desktopChatMeta{color:var(--muted);font-size:13px;line-height:1.45}.desktopDeleteButton{width:28px;height:28px;color:var(--muted);background:#ffffff0f;border:none;border-radius:999px;align-self:start;margin:12px 12px 0 0}.desktopDeleteButton:hover{color:#ffd0d6;background:#ff6b7a26}.emptySearch{color:var(--muted);padding:10px 4px;font-size:14px}.appCard{border:1px solid var(--border);box-shadow:var(--shadow);background:linear-gradient(#0a162adb 0%,#081224f5 100%);border-radius:28px;flex-direction:column;min-height:0;display:flex;overflow:hidden}.header{border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0c172cb8;justify-content:space-between;align-items:center;min-height:76px;padding:0 20px;display:flex}.headerLeft,.headerRight{align-items:center;gap:12px;display:flex}.sidebarToggleButton{border:1px solid var(--border);color:#fff;background:#ffffff0a;border-radius:14px;width:42px;height:42px}.brand{letter-spacing:-.04em;color:#fff;font-size:34px;font-weight:800;line-height:1}.accountMenuWrapper{position:relative}.accountAvatarButton{border:1px solid var(--border);color:#fff;background:linear-gradient(#132545 0%,#0f1d37 100%);border-radius:50%;place-items:center;width:44px;height:44px;font-weight:800;display:grid;overflow:hidden}.accountAvatarButton img{object-fit:cover;width:100%;height:100%}.accountDropdown{border:1px solid var(--border);width:240px;box-shadow:var(--shadow);z-index:30;background:#0f1d38;border-radius:18px;padding:10px;position:absolute;top:calc(100% + 10px);right:0}.accountDropdownName{color:#fff;padding:8px 10px 12px;font-size:14px;font-weight:700}.accountDropdownItem{width:100%;height:42px;color:var(--text);text-align:left;background:0 0;border:none;border-radius:12px;padding:0 10px}.accountDropdownItem:hover{background:#ffffff0d}.themeToggleRow{border-top:1px solid var(--border);color:var(--muted);justify-content:space-between;align-items:center;margin-top:8px;padding:10px;font-size:14px;display:flex}.themeToggle{background:#233456;border:none;border-radius:999px;width:48px;height:28px;padding:4px;position:relative}.themeToggle.active{background:linear-gradient(90deg,#2f80ff 0%,#5aa2ff 100%)}.themeToggleKnob{background:#fff;border-radius:50%;width:20px;height:20px;transition:transform .2s;display:block}.themeToggle.active .themeToggleKnob{transform:translate(20px)}.main{flex:1;min-height:0;display:flex}.chatArea{flex-direction:column;flex:1;min-height:0;padding:18px;display:flex}.chatAreaHeader{border:1px solid var(--border);min-height:62px;color:var(--success);background:linear-gradient(#132544 0%,#101d36 100%);border-radius:22px 22px 0 0;justify-content:space-between;align-items:center;padding:0 18px;font-size:14px;font-weight:700;display:flex}.modelSelectorWrapper{position:relative}.modelSelectorButton{color:#9ed0ff;background:#2f80ff14;border:1px solid #2f80ff42;border-radius:999px;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-size:14px;font-weight:800;display:inline-flex}.modelArrow{transition:transform .2s}.modelArrow.open{transform:rotate(180deg)}.modelDropdown{border:1px solid var(--border);min-width:200px;box-shadow:var(--shadow);z-index:30;background:#0f1d38;border-radius:16px;padding:8px;position:absolute;top:calc(100% + 10px);left:0}.modelDropdownItem{width:100%;min-height:42px;color:var(--text);text-align:left;background:0 0;border:none;border-radius:12px;padding:0 12px}.modelDropdownItem.active,.modelDropdownItem:hover{color:#fff;background:#2f80ff1f}.messages{border-inline:1px solid var(--border);border-bottom:1px solid var(--border);background:linear-gradient(#050e1ec7 0%,#050d1bf5 100%);flex:1;min-height:0;padding:22px 8px;overflow:auto}.messageRow{margin-bottom:16px;display:flex}.userRow{justify-content:flex-end}.aiRow{justify-content:flex-start}.messageBubble{white-space:pre-wrap;word-break:break-word;text-align:left;border-radius:20px;max-width:min(78%,860px);padding:16px 18px;font-size:16px;line-height:1.55}.messageBubble.user{color:#fff;background:linear-gradient(#2f80ff 0%,#1d65db 100%);border-top-right-radius:8px;box-shadow:0 10px 30px #2f80ff38}.messageBubble.ai{color:var(--text);background:#132544c7;border:1px solid #97a7c91f;border-top-left-radius:8px}.imageMessageBubble{padding:12px}.generatedImageWrap{flex-direction:column;gap:12px;display:flex}.generatedImage{cursor:zoom-in;border:1px solid #97a7c924;border-radius:18px;width:100%;max-width:520px}.generatedImageCaption{color:var(--muted);font-size:14px}.imageActions{flex-wrap:wrap;gap:10px;display:flex}.imageActions button{color:#d7e8ff;background:#2f80ff1a;border:1px solid #2f80ff38;border-radius:12px;min-height:40px;padding:0 14px;font-weight:700}.imageActions button:hover{background:#2f80ff33}.streamCursor{margin-left:2px;animation:.8s infinite blink;display:inline-block}@keyframes blink{50%{opacity:0}}.inputBar{border:1px solid var(--border);background:#09152a;border-top:none;border-radius:0 0 22px 22px;grid-template-columns:1fr auto;gap:12px;margin-top:0;padding:16px;display:grid}.inputBar input{border:1px solid var(--border);background:var(--input);color:#fff;border-radius:18px;outline:none;height:56px;padding:0 18px;font-size:16px}.inputBar input::placeholder{color:var(--muted)}.inputBar button,.stopButton{color:#0b1730;background:linear-gradient(#fff 0%,#eaf2ff 100%);border:none;border-radius:18px;min-width:56px;height:56px;font-size:22px;font-weight:800;box-shadow:0 10px 24px #0000002e}.stopButton{padding:0 18px;font-size:15px}.mobileSidebarOverlay{z-index:10;background:#030812a6;position:fixed;inset:0}.imageViewer{z-index:100;background:#040a14e0;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.imageViewer img{border-radius:20px;max-width:min(92vw,1100px);max-height:88vh}.messageAppear{animation:.22s fadeUp}@keyframes fadeUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}[data-theme=light]{--bg:#edf3ff;--bg-2:#f7faff;--panel:#fff;--panel-2:#f4f8ff;--panel-3:#ebf2ff;--border:#2541761f;--border-strong:#25417633;--text:#12203a;--muted:#5f6f8f;--muted-2:#7f90b0;--input:#fff;--shadow:0 16px 40px #12203a1f}[data-theme=light] html,[data-theme=light] body,[data-theme=light] #root{background:radial-gradient(circle at 0 0,#3b82f614,#0000 30%),linear-gradient(#eef4ff 0%,#f6f9ff 100%)}[data-theme=light] .desktopSidebar{background:linear-gradient(#f6f9ff 0%,#eef4ff 100%)}[data-theme=light] .sidebarHeader h3,[data-theme=light] .desktopChatTitle,[data-theme=light] .brand{color:#12203a}[data-theme=light] .newChatButton{color:#fff;background:linear-gradient(#1d65db 0%,#2f80ff 100%)}[data-theme=light] .chatSearchInput,[data-theme=light] .inputBar input{color:#12203a;background:#fff}[data-theme=light] .appCard,[data-theme=light] .header,[data-theme=light] .chatAreaHeader,[data-theme=light] .messages,[data-theme=light] .inputBar{background:#fff}[data-theme=light] .messageBubble.ai,[data-theme=light] .accountAvatarButton,[data-theme=light] .sidebarToggleButton{color:#12203a;background:#f3f7ff}@media (width<=900px){.appShell{padding:10px}.desktopLayout{grid-template-columns:1fr;min-height:calc(100svh - 20px)}.desktopSidebar{z-index:20;width:min(84vw,320px);transition:transform .25s;position:fixed;top:10px;bottom:10px;left:10px;transform:translate(-110%)}.desktopSidebar.open{transform:translate(0)}.sidebarCloseButton{justify-content:center;align-items:center;display:inline-flex}.appCard{min-height:calc(100svh - 20px)}.brand{font-size:26px}.chatArea{padding:12px}.messageBubble{max-width:90%;font-size:15px}.chatAreaHeader{min-height:56px;padding:0 12px;font-size:13px}.inputBar{padding:12px}.inputBar input,.inputBar button,.stopButton{height:50px}:root{--bg:#f3f4f6;--card:#fff;--text:#1f2328;--muted:#6b7280;--border:#e5e7eb;--soft:#f9fafb;--accent:#111827;--accentText:#fff;--green:#16a34a;color:var(--text);background:var(--bg);font-family:Inter,Arial,sans-serif;font-weight:400;line-height:1.45}[data-theme=dark]{--bg:#0f172a;--card:#111827;--text:#f8fafc;--muted:#94a3b8;--border:#243041;--soft:#182233;--accent:#f8fafc;--accentText:#111827;--green:#4ade80}*{box-sizing:border-box}html,body,#root{width:100%;min-height:100%;margin:0;overflow:hidden}body{background:var(--bg);overflow:hidden}button,input{font:inherit}button{cursor:pointer}.appShell{background:var(--bg);width:100%;height:100vh;position:relative;overflow:hidden}.desktopLayout{grid-template-columns:280px minmax(0,1fr);width:100%;height:100vh;display:grid}.desktopSidebar{background:var(--card);border-right:1px solid var(--border);will-change:transform, opacity;flex-direction:column;gap:14px;min-width:0;padding:16px;display:flex;overflow:hidden}.desktopSidebarTop{flex-direction:column;gap:12px;display:flex}.sidebarHeader{justify-content:space-between;align-items:center;display:flex}.sidebarHeader h3{color:var(--text);margin:0;font-size:18px}.sidebarCloseButton{background:var(--soft);width:32px;height:32px;color:var(--muted);border:none;border-radius:10px;font-size:20px;line-height:1;display:none}.chatSearchInput{border:1px solid var(--border);background:var(--card);width:100%;height:44px;color:var(--text);border-radius:12px;outline:none;padding:0 14px}.chatSearchInput::placeholder{color:var(--muted)}.newChatButton{background:var(--accent);color:var(--accentText);border:none;border-radius:14px;padding:12px 14px;font-size:14px;font-weight:700}.newChatButton.desktop{justify-content:center;width:100%}.desktopChatList{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex;overflow-y:auto}.desktopChatItem{background:0 0;border:1px solid #0000;border-radius:14px;min-width:0;padding:10px 38px 10px 10px;position:relative}.desktopChatItem.active{background:var(--soft);border-color:var(--border)}.desktopChatMain{text-align:left;width:100%;color:inherit;background:0 0;border:none;min-width:0;padding:0}.desktopChatTitle{color:var(--text);margin-bottom:4px;font-size:14px;font-weight:600}.desktopChatMeta{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.desktopDeleteButton{background:var(--soft);width:24px;height:24px;color:var(--muted);border:none;border-radius:999px;justify-content:center;align-items:center;font-size:16px;line-height:1;display:flex;position:absolute;top:9px;right:9px}.desktopDeleteButton:hover{color:#dc2626;background:#fee2e2}.emptySearch{color:var(--muted);padding:14px 12px;font-size:13px}.appCard{background:var(--card);flex-direction:column;width:100%;min-width:0;height:100vh;display:flex;overflow:hidden}.header{border-bottom:1px solid var(--border);background:var(--card);flex:0 0 72px;justify-content:space-between;align-items:center;height:72px;padding:0 24px;display:flex}.headerLeft{align-items:center;gap:12px;display:flex}.headerRight{align-items:center;display:flex}.sidebarToggleButton{background:var(--soft);width:38px;height:38px;color:var(--text);border:none;border-radius:12px;justify-content:center;align-items:center;font-size:18px;transition:background .2s,transform .2s;display:inline-flex}.sidebarToggleButton:hover{background:var(--border)}.sidebarToggleButton:active{transform:scale(.96)}.brand{color:var(--text);font-size:18px;font-weight:700}.accountMenuWrapper{position:relative}.accountAvatarButton{background:var(--soft);width:40px;height:40px;color:var(--text);border:none;border-radius:999px;justify-content:center;align-items:center;padding:0;font-weight:700;display:flex;overflow:hidden}.accountAvatarButton img{object-fit:cover;width:100%;height:100%}.accountDropdown{background:var(--card);border:1px solid var(--border);z-index:50;border-radius:16px;flex-direction:column;gap:6px;width:220px;padding:10px;display:flex;position:absolute;top:48px;right:0;box-shadow:0 14px 34px #0000001f}.accountDropdownName{color:var(--text);padding:8px 10px;font-weight:700}.accountDropdownItem{color:var(--text);text-align:left;background:0 0;border:none;border-radius:10px;padding:10px}.accountDropdownItem:hover{background:var(--soft)}.themeToggleRow{color:var(--text);justify-content:space-between;align-items:center;gap:10px;padding:10px;display:flex}.themeToggle{background:#d1d5db;border:none;border-radius:999px;width:48px;height:28px;padding:0;transition:background .2s;position:relative}.themeToggle.active{background:var(--green)}.themeToggleKnob{background:#fff;border-radius:999px;width:22px;height:22px;transition:transform .2s;position:absolute;top:3px;left:4px}.themeToggle.active .themeToggleKnob{transform:translate(18px)}.main{flex-direction:column;flex:1;gap:16px;min-width:0;padding:20px 24px;display:flex;overflow:hidden}.chatArea{background:var(--card);border:1px solid var(--border);border-radius:20px;flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.chatAreaHeader{border-bottom:1px solid var(--border);background:var(--soft);flex:none;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px;display:flex}.modelSelectorWrapper{position:relative}.modelSelectorButton{color:var(--text);background:0 0;border:none;align-items:center;gap:8px;padding:0;font-size:18px;font-weight:700;display:inline-flex}.modelArrow{color:var(--muted);font-size:14px;transition:transform .2s;display:inline-block}.modelArrow.open{transform:rotate(180deg)}.modelDropdown{background:var(--card);border:1px solid var(--border);z-index:40;border-radius:14px;flex-direction:column;gap:4px;min-width:180px;padding:8px;display:flex;position:absolute;top:36px;left:0;box-shadow:0 14px 34px #0000001f}.modelDropdownItem{color:var(--text);text-align:left;background:0 0;border:none;border-radius:10px;padding:10px 12px;font-weight:600}.modelDropdownItem:hover{background:var(--soft)}.modelDropdownItem.active{background:var(--soft);color:var(--green)}.chatAreaHeader span{color:var(--green);white-space:nowrap;font-size:13px;font-weight:600}.messages{background:var(--card);scroll-behavior:smooth;flex:1;min-height:0;padding:20px;overflow:hidden auto}.messageRow{width:100%;margin-bottom:14px;display:flex}.userRow{justify-content:flex-end}.aiRow{justify-content:flex-start}.messageAppear{animation:.22s messageFadeUp}@keyframes messageFadeUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.messageBubble{white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;border-radius:18px;width:fit-content;max-width:min(82%,560px);padding:14px 16px;font-size:15px;line-height:1.45}.messageBubble.user{background:var(--accent);color:var(--accentText);border-bottom-right-radius:8px}.messageBubble.ai{background:var(--soft);color:var(--text);border:1px solid var(--border);border-bottom-left-radius:8px}.inputBar{border-top:1px solid var(--border);background:var(--card);flex:none;gap:10px;padding:14px;display:flex}.inputBar input{border:1px solid var(--border);background:var(--card);min-width:0;height:52px;color:var(--text);border-radius:16px;outline:none;flex:1;padding:0 16px}.inputBar input::placeholder{color:var(--muted)}.inputBar input:focus{border-color:var(--muted);box-shadow:0 0 0 3px #1118270f}.inputBar button,.stopButton{background:var(--accent);height:52px;color:var(--accentText);border:none;border-radius:16px;flex:none;padding:0 18px;font-size:16px;font-weight:700;transition:transform .15s,background .2s}.inputBar button:active,.stopButton:active{transform:scale(.97)}.streamCursor{margin-left:2px;animation:1s step-end infinite blinkCursor;display:inline-block}@keyframes blinkCursor{0%,50%{opacity:1}50.01%,to{opacity:0}}.mobileSidebarOverlay{display:none}@media (width<=900px){html,body,#root,.appShell,.desktopLayout,.appCard{height:100vh}.desktopLayout{grid-template-columns:1fr}.desktopSidebar{z-index:30;opacity:0;border-right:1px solid #e5e7ebe6;width:min(82vw,320px);height:100vh;transition:transform .32s cubic-bezier(.22,1,.36,1),opacity .22s;position:fixed;top:0;left:0;transform:translate(-100%);box-shadow:12px 0 40px #0f172a1f}.desktopSidebar.open{opacity:1;transform:translate(0)}.sidebarCloseButton{justify-content:center;align-items:center;display:inline-flex}.mobileSidebarOverlay{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:20;background:radial-gradient(circle at 20% 20%,#11182714,#0000 35%),linear-gradient(#11182729,#1118274d);animation:.25s fadeOverlay;display:block;position:fixed;inset:0}@keyframes fadeOverlay{0%{opacity:0}to{opacity:1}}.header{flex:0 0 64px;height:64px;padding:0 14px}.brand{font-size:16px}.main{gap:12px;padding:12px;overflow:hidden}.chatArea{border-radius:18px;min-height:0}.chatAreaHeader{padding:14px}.modelSelectorButton{font-size:16px}.chatAreaHeader span{font-size:12px}.messages{padding:14px}.messageBubble{max-width:78%;padding:12px 14px;font-size:14px}.inputBar{padding:12px}.inputBar input{border-radius:14px;height:48px}.inputBar button,.stopButton{border-radius:14px;height:48px;padding:0 14px;font-size:14px}.accountDropdown{width:210px;right:0}.modelDropdown{min-width:160px}.generatedImage{border:1px solid var(--border);cursor:pointer;border-radius:14px;width:min(100%,360px);display:block}.desktopChatTitleRow{align-items:center;gap:8px;min-width:0;margin-bottom:4px;display:flex}.chatModelBadge{background:var(--soft);color:var(--green);border:1px solid var(--border);border-radius:999px;flex:none;padding:4px 8px;font-size:10px;font-weight:700}.generatedImageWrap{flex-direction:column;gap:10px;display:flex}.generatedImage{border:1px solid var(--border);cursor:pointer;border-radius:14px;width:min(100%,360px);max-width:100%;display:block}.generatedImageCaption{color:var(--muted);font-size:12px}.imageMessageBubble{padding:12px}.imageActions{gap:8px;margin-top:8px;display:flex}.imageActions button{color:#fff;background:#111827;border:none;border-radius:10px;padding:6px 12px;font-size:13px}.imageViewer{z-index:999;background:#000000db;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.imageViewer img{border-radius:16px;max-width:92%;max-height:92%;box-shadow:0 20px 60px #00000073}.desktopChatTitleRow{flex-wrap:wrap;align-items:flex-start}.generatedImage{width:100%;max-width:100%}}}
