.ChatApp_layout__OziAW{display:grid;grid-template-columns:280px 1fr;grid-gap:24px;gap:24px;padding:24px;align-items:stretch;height:100%;min-height:0}@media(max-width:768px){.ChatApp_layout__OziAW{grid-template-columns:1fr;height:auto;min-height:0;padding:16px}}.ChatApp_error___qhRs,.ChatApp_loading__JZcpK{width:100%;max-width:1200px;margin-inline:auto;padding-inline:20px;padding-block:32px}.ChatApp_error___qhRs{color:#b91c1c;padding-block:8px;margin:0}.ChatApp_sidebar__mO0F9{display:flex;flex-direction:column;gap:14px;min-height:0;padding:16px;border:1px solid #e7e7f0;border-radius:24px;background:#fff;box-shadow:0 1px 2px rgba(15,15,30,.04),0 12px 32px -20px rgba(15,15,30,.28)}@media(max-width:768px){.ChatApp_sidebar__mO0F9{height:auto}}.ChatApp_newChat__q3k41{flex:0 0 auto;padding:12px 16px;border:none;border-radius:16px;background:linear-gradient(135deg,#1d00ff,#3d5afe);color:#fff;font-weight:600;cursor:pointer;transition:opacity .15s ease}.ChatApp_newChat__q3k41:hover{opacity:.92}.ChatApp_newChat__q3k41:disabled{opacity:.45;cursor:not-allowed}.ChatApp_sessionList__IjXuq{display:flex;flex-direction:column;gap:6px;overflow-y:auto;min-height:0}@media(max-width:768px){.ChatApp_sessionList__IjXuq{max-height:240px}}.ChatApp_sidebarEmpty__zKh4b{color:#6b6b7b;font-size:.9rem;padding:8px 4px}.ChatApp_sessionItem__HKmxv{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e7e7f0;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s ease,background .15s ease}.ChatApp_sessionItem__HKmxv:hover{border-color:#4338ff}.ChatApp_sessionItem__HKmxv:hover .ChatApp_sessionDelete__KPNn_{opacity:1}.ChatApp_sessionActive__I1fFA{border-color:#4338ff;background:#f3f3fa}.ChatApp_sessionText__uAz1P{display:flex;flex-direction:column;min-width:0;flex:1 1}.ChatApp_sessionTitle__jVdrx{font-weight:600;font-size:.92rem}.ChatApp_sessionMeta__ddxWS,.ChatApp_sessionTitle__jVdrx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ChatApp_sessionMeta__ddxWS{color:#6b6b7b;font-size:.76rem}.ChatApp_sessionDelete__KPNn_{flex:0 0 auto;border:none;background:transparent;color:#6b6b7b;font-size:1.2rem;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s ease,color .15s ease}.ChatApp_sessionDelete__KPNn_:hover{color:#b91c1c}@media(max-width:768px){.ChatApp_sessionDelete__KPNn_{opacity:1}}.ChatApp_main__oE9UZ{position:relative;display:flex;flex-direction:column;min-height:0;border:1px solid #e7e7f0;border-radius:24px;background:#fff;box-shadow:0 1px 2px rgba(15,15,30,.04),0 12px 32px -20px rgba(15,15,30,.28);overflow:hidden}@media(max-width:768px){.ChatApp_main__oE9UZ{height:70vh}}.ChatApp_topbar___teN0{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #e7e7f0;background:#f3f3fa}.ChatApp_modelPicker__kl5ef{display:flex;align-items:center;gap:10px;min-width:0}.ChatApp_modelLabel__nYx2Q{font-size:.82rem;color:#6b6b7b;font-weight:600}.ChatApp_modelSelect__2MhD1{max-width:320px;padding:8px 12px;font:inherit;color:#0b0b12}.ChatApp_modelSelect__2MhD1,.ChatApp_settingsBtn__0Cx6M{border:1px solid #e7e7f0;border-radius:10px;background:#fff;cursor:pointer}.ChatApp_settingsBtn__0Cx6M{flex:0 0 auto;margin-left:auto;padding:8px 14px;font-size:.85rem;transition:border-color .15s ease,background .15s ease}.ChatApp_settingsBtn__0Cx6M:hover{border-color:#4338ff}.ChatApp_settingsBtn__0Cx6M:disabled{opacity:.5;cursor:not-allowed}.ChatApp_settingsBtnActive__4xxWD{border-color:#4338ff;background:#fff;color:#4338ff}.ChatApp_balanceChip__RWFXq{flex:0 0 auto;display:inline-flex;align-items:baseline;gap:5px;padding:7px 12px;border:1px solid #e7e7f0;border-radius:999px;background:#fff;cursor:pointer;transition:border-color .15s ease}.ChatApp_balanceChip__RWFXq:hover{border-color:#4338ff}.ChatApp_balanceChipValue__jDJGy{font-size:.9rem;font-weight:700;color:#0b0b12}.ChatApp_balanceChipUnit__GOmcy{font-size:.72rem;color:#6b6b7b}.ChatApp_lowBalance__zDqDX{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #e7e7f0;background:rgba(220,38,38,.08);font-size:.88rem;color:#0b0b12}.ChatApp_lowBalanceStrong__cqQ5m{background:rgba(220,38,38,.16);border-bottom:2px solid rgba(220,38,38,.5);font-size:.92rem}.ChatApp_lowBalanceTitle__sx4j3{color:#dc2626;font-weight:700}.ChatApp_lowBalanceBtn__SKEIE{flex:0 0 auto;padding:7px 14px;border:0;border-radius:10px;background:#4338ff;color:#fff;font-size:.83rem;font-weight:600;cursor:pointer}.ChatApp_drawerScrim__UUVae{position:fixed;inset:0;background:rgba(11,11,20,.28);z-index:100;animation:ChatApp_scrimIn__MwBbF .15s ease}.ChatApp_drawer__iGkAB{position:fixed;top:0;right:0;bottom:0;width:min(380px,88%);z-index:101;display:flex;flex-direction:column;background:#fff;border-left:1px solid #e7e7f0;box-shadow:0 30px 70px rgba(20,18,60,.18);animation:ChatApp_drawerIn__mSd6S .18s ease}@keyframes ChatApp_scrimIn__MwBbF{0%{opacity:0}}@keyframes ChatApp_drawerIn__mSd6S{0%{transform:translateX(100%)}}.ChatApp_drawerHead__eCC2D{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 4px}.ChatApp_drawerTitle__g04H1{margin:0;font-size:1.05rem}.ChatApp_drawerClose__FS68E{border:none;background:transparent;font-size:1.5rem;line-height:1;color:#6b6b7b;cursor:pointer}.ChatApp_drawerClose__FS68E:hover{color:#0b0b12}.ChatApp_drawerModel__WuQEU{margin:0;padding:0 18px 12px;color:#6b6b7b;font-size:.82rem;border-bottom:1px solid #e7e7f0}.ChatApp_drawerBody__gIRUx{flex:1 1;min-height:0;overflow-y:auto;padding:16px 18px 24px;display:flex;flex-direction:column;gap:20px}.ChatApp_drawerSection__ziKRB{display:flex;flex-direction:column;gap:6px}.ChatApp_paramHead__4COSG{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.ChatApp_paramName__9Lo1K{font-size:.85rem;color:#2b2b3a;font-weight:600}.ChatApp_paramValue__V0gus{font-size:.82rem;color:#4338ff;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ChatApp_paramDesc__XMBXM{margin:0;font-size:.78rem;line-height:1.45;color:#6b6b7b}.ChatApp_paramInput__2xCUx{padding:8px 10px;border:1px solid #e7e7f0;border-radius:10px;background:#fff;font:inherit}.ChatApp_paramRange__wQtvk{width:100%;accent-color:#4338ff;cursor:pointer}.ChatApp_sysTextarea__biJ7z{resize:vertical;min-height:84px;padding:10px 12px;border:1px solid #e7e7f0;border-radius:10px;font:inherit;line-height:1.45}.ChatApp_sysTextarea__biJ7z:focus{outline:none;border-color:#4338ff}.ChatApp_thread__oqNQb{flex:1 1;min-height:0;overflow-y:auto;padding:24px 18px;display:flex;flex-direction:column;gap:16px}.ChatApp_welcome__w_Ee3{margin:auto;text-align:center;max-width:420px}.ChatApp_welcomeTitle__4MTCH{font-size:1.3rem;margin:0 0 8px}.ChatApp_welcomeText__8EPMH{color:#6b6b7b}.ChatApp_welcomeCta__q_o5C{margin-top:16px;padding:10px 20px;border:0;border-radius:10px;background:#4338ff;color:#fff;font-size:.9rem;font-weight:600;cursor:pointer;transition:opacity .15s ease}.ChatApp_welcomeCta__q_o5C:hover{opacity:.92}.ChatApp_bubbleRow__ksT6W{display:flex}.ChatApp_rowUser__4gGqH{justify-content:flex-end}.ChatApp_rowUser__4gGqH .ChatApp_bubbleCol__NxK4g{align-items:flex-end}.ChatApp_rowAssistant__urzyd{justify-content:flex-start}.ChatApp_rowAssistant__urzyd .ChatApp_bubbleCol__NxK4g{align-items:flex-start}.ChatApp_bubbleCol__NxK4g{display:flex;flex-direction:column;gap:6px;max-width:min(82%,680px)}.ChatApp_identity__Gh7U4{display:flex;align-items:center;gap:8px;padding:0 2px}.ChatApp_identityName__ywM9L{font-size:.78rem;font-weight:700;color:#2b2b3a}.ChatApp_userAvatar__YcpWt{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:linear-gradient(135deg,#1d00ff,#3d5afe);color:#fff;font-size:.72rem;font-weight:700;object-fit:cover}.ChatApp_providerLogo__tk5uM{width:22px;height:22px;border-radius:50%;object-fit:contain;background:#fff;border:1px solid #e7e7f0}.ChatApp_providerLogoFallback__ftYVa{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#0e0e1a;color:#fff;font-size:.72rem;font-weight:700}.ChatApp_bubble__VAck0{width:-moz-fit-content;width:fit-content;max-width:100%;padding:12px 16px;border-radius:16px;line-height:1.55;word-wrap:break-word;overflow-wrap:anywhere}.ChatApp_bubbleUser__pHMVM{background:linear-gradient(135deg,#1d00ff,#3d5afe);color:#fff;border-bottom-right-radius:4px}.ChatApp_bubbleUser__pHMVM .ChatApp_markdown__ois71 a{color:#fff;text-decoration:underline}.ChatApp_bubbleUser__pHMVM .ChatApp_markdown__ois71 :not(pre)>code{background:hsla(0,0%,100%,.22);color:#fff}.ChatApp_bubbleAssistant__APFVX{background:#f3f3fa;border:1px solid #e7e7f0;border-bottom-left-radius:4px}.ChatApp_userText__xlhj8{margin:0;white-space:pre-wrap}.ChatApp_markdown__ois71 :first-child{margin-top:0}.ChatApp_markdown__ois71 :last-child{margin-bottom:0}.ChatApp_markdown__ois71 p{margin:0 0 10px}.ChatApp_markdown__ois71 h1,.ChatApp_markdown__ois71 h2,.ChatApp_markdown__ois71 h3,.ChatApp_markdown__ois71 h4,.ChatApp_markdown__ois71 h5,.ChatApp_markdown__ois71 h6{margin:18px 0 8px;line-height:1.3;font-weight:700}.ChatApp_markdown__ois71 h1{font-size:1.5rem}.ChatApp_markdown__ois71 h2{font-size:1.3rem}.ChatApp_markdown__ois71 h3{font-size:1.15rem}.ChatApp_markdown__ois71 h4{font-size:1.02rem}.ChatApp_markdown__ois71 h5{font-size:.92rem}.ChatApp_markdown__ois71 h6{font-size:.85rem;color:#6b6b7b}.ChatApp_markdown__ois71 .heading-anchor{display:none}.ChatApp_markdown__ois71 pre{background:#07070c;color:#f3f4f6;padding:28px 14px 12px;border-radius:10px;overflow-x:auto;font-size:.85rem;margin:0 0 10px}.ChatApp_markdown__ois71 .code-block{position:relative;margin:0 0 10px}.ChatApp_markdown__ois71 .code-block pre{margin:0}.ChatApp_markdown__ois71 .code-block:focus-within .code-copy,.ChatApp_markdown__ois71 .code-block:hover .code-copy{opacity:1}.ChatApp_markdown__ois71 .code-lang{position:absolute;top:7px;left:14px;z-index:1;font-size:.66rem;text-transform:uppercase;letter-spacing:.05em;color:rgba(243,244,246,.45);pointer-events:none}.ChatApp_markdown__ois71 .code-copy{position:absolute;top:6px;right:8px;z-index:1;padding:2px 9px;border:1px solid hsla(0,0%,100%,.18);border-radius:6px;background:hsla(0,0%,100%,.08);color:rgba(243,244,246,.85);font-size:.72rem;cursor:pointer;opacity:0;transition:opacity .12s ease,background .12s ease}.ChatApp_markdown__ois71 .code-copy:hover{background:hsla(0,0%,100%,.16)}.ChatApp_markdown__ois71 code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em}.ChatApp_markdown__ois71 :not(pre)>code{background:rgba(11,11,20,.06);padding:1px 5px;border-radius:4px}.ChatApp_markdown__ois71 ol,.ChatApp_markdown__ois71 ul{margin:0 0 10px;padding-left:22px}.ChatApp_markdown__ois71 li{margin:2px 0}.ChatApp_markdown__ois71 blockquote{margin:0 0 10px;padding:4px 14px;border-left:3px solid #e7e7f0;color:#6b6b7b}.ChatApp_markdown__ois71 hr{border:0;border-top:1px solid #e7e7f0;margin:16px 0}.ChatApp_markdown__ois71 table{display:block;width:100%;margin:0 0 12px;border-collapse:collapse;overflow-x:auto;font-size:.88rem}.ChatApp_markdown__ois71 table td,.ChatApp_markdown__ois71 table th{border:1px solid #e7e7f0;padding:6px 10px;text-align:left}.ChatApp_markdown__ois71 table th{background:#f3f3fa;font-weight:600}.ChatApp_markdown__ois71 a{color:#4338ff}.ChatApp_actions__Eb_S9{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0 2px;opacity:0;transition:opacity .12s ease}.ChatApp_actionsLeft__qSgs7{display:flex;flex-wrap:wrap;gap:4px}.ChatApp_bubbleRow__ksT6W:focus-within .ChatApp_actions__Eb_S9,.ChatApp_bubbleRow__ksT6W:hover .ChatApp_actions__Eb_S9{opacity:1}.ChatApp_actionBtn__CJjDC{padding:3px 9px;border:1px solid transparent;border-radius:10px;background:transparent;color:#6b6b7b;font-size:.76rem;cursor:pointer;transition:background .12s ease,color .12s ease}.ChatApp_actionBtn__CJjDC:hover:not(:disabled){background:#f3f3fa;color:#0b0b12;border-color:#e7e7f0}.ChatApp_actionBtn__CJjDC:disabled{opacity:.45;cursor:not-allowed}.ChatApp_actionConfirm__T8CZc{color:#b91c1c;border-color:#f1b4b4;background:#fdf0f0}.ChatApp_editBox__TFOLr{display:flex;flex-direction:column;gap:8px;min-width:260px}.ChatApp_editArea__fYMwx{resize:vertical;min-height:64px;padding:8px 10px;border:none;border-radius:10px;background:hsla(0,0%,100%,.18);color:#fff;font:inherit;line-height:1.45}.ChatApp_editArea__fYMwx::placeholder{color:hsla(0,0%,100%,.7)}.ChatApp_editArea__fYMwx:focus{outline:2px solid hsla(0,0%,100%,.6)}.ChatApp_editActions__Fo2e3{display:flex;gap:8px}.ChatApp_editCancel__uy8fC,.ChatApp_editSave__X6d5a{padding:5px 12px;border-radius:10px;font-size:.8rem;cursor:pointer;border:1px solid hsla(0,0%,100%,.5)}.ChatApp_editSave__X6d5a{background:#fff;color:#2d23d6;font-weight:600;border-color:#fff}.ChatApp_editCancel__uy8fC{background:transparent;color:#fff}.ChatApp_typing__j8DCC{display:inline-flex;gap:5px;align-items:center}.ChatApp_typing__j8DCC span{width:7px;height:7px;border-radius:50%;background:#6b6b7b;animation:ChatApp_blink__STJWC 1.2s ease-in-out infinite both}.ChatApp_typing__j8DCC span:nth-child(2){animation-delay:.2s}.ChatApp_typing__j8DCC span:nth-child(3){animation-delay:.4s}@keyframes ChatApp_blink__STJWC{0%,80%,to{opacity:.3}40%{opacity:1}}.ChatApp_composer__ajKm_{display:flex;flex-direction:column;gap:6px;padding:10px 14px 12px;border-top:1px solid #e7e7f0;background:#fff}.ChatApp_toolbar__nEoNA{display:flex;align-items:center;justify-content:space-between;gap:8px}.ChatApp_toolbarLeft__GLp3n{display:flex;align-items:center;gap:4px}.ChatApp_fileInput__X_JcS{display:none}.ChatApp_iconBtn__TBy11{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:10px;background:transparent;color:#6b6b7b;cursor:pointer;transition:color .15s ease,background .15s ease}.ChatApp_iconBtn__TBy11:hover:not(:disabled){color:#2b2b3a;background:#f3f3fa}.ChatApp_iconBtn__TBy11:disabled{opacity:.45;cursor:not-allowed}.ChatApp_memoryWrap__bgkTI{position:relative;display:inline-flex}.ChatApp_memoryBtn__AoKbs{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 8px;border:none;border-radius:10px;background:transparent;color:#6b6b7b;font:inherit;font-size:.85rem;cursor:pointer;transition:color .15s ease,background .15s ease}.ChatApp_memoryBtn__AoKbs:hover{color:#2b2b3a;background:#f3f3fa}.ChatApp_memoryCount__nBoVt{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:600}.ChatApp_memoryScrim__2lUVr{position:fixed;inset:0;z-index:20}.ChatApp_memoryPop__ubod7{position:absolute;bottom:calc(100% + 8px);left:0;z-index:21;display:flex;flex-direction:column;gap:8px;width:260px;padding:12px 14px;border:1px solid #e7e7f0;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(11,11,20,.12)}.ChatApp_memoryPopHead__YhCZ9{display:flex;align-items:center;justify-content:space-between}.ChatApp_memoryPopTitle__u1Yyf{font-size:.85rem;font-weight:600;color:#2b2b3a}.ChatApp_memoryPopValue__PUMYK{font-size:.82rem;color:#4338ff;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.ChatApp_memoryPopDesc__JRpwN{margin:0;font-size:.75rem;line-height:1.45;color:#6b6b7b}.ChatApp_memorySlider__BOCyn{width:100%;accent-color:#4338ff;cursor:pointer}.ChatApp_memorySlider__BOCyn:disabled{opacity:.5;cursor:not-allowed}.ChatApp_pendingAttachments__CIfPr{display:flex;flex-wrap:wrap;gap:8px}.ChatApp_pendingItem__NzzKw{display:flex;align-items:center;gap:8px;max-width:240px;padding:6px 8px;border:1px solid #e7e7f0;border-radius:16px;background:#fff}.ChatApp_pendingThumb__lVLpw{width:36px;height:36px;object-fit:cover;border-radius:6px;flex:0 0 auto}.ChatApp_pendingDoc__TUS6U{font-size:20px;flex:0 0 auto}.ChatApp_pendingMeta__RtPjG{display:flex;flex-direction:column;min-width:0}.ChatApp_pendingName__9ky9q{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ChatApp_pendingSize__aWbui{font-size:11px;color:#6b6b7b}.ChatApp_pendingRemove__Ah8IB{flex:0 0 auto;width:20px;height:20px;border:none;border-radius:50%;background:rgba(0,0,0,.06);cursor:pointer;line-height:1;font-size:14px}.ChatApp_pendingRemove__Ah8IB:hover{background:rgba(0,0,0,.12)}.ChatApp_msgAttachments__I6pSl{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.ChatApp_msgImage__lznkf{display:block;border-radius:8px;overflow:hidden;max-width:220px}.ChatApp_msgImage__lznkf img{display:block;max-width:100%;height:auto}.ChatApp_msgFile__g_4bI{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #e7e7f0;border-radius:16px;text-decoration:none;color:inherit;background:rgba(0,0,0,.02)}.ChatApp_msgFile__g_4bI:hover{border-color:#4338ff}.ChatApp_msgFileIcon__dwsh9{font-size:16px}.ChatApp_msgFileName__XalTd{font-size:13px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ChatApp_textarea__v1Jim{width:100%;resize:none;max-height:160px;min-height:40px;padding:6px 6px 2px;border:none;background:transparent;font:inherit;line-height:1.45}.ChatApp_textarea__v1Jim:focus{outline:none}.ChatApp_textarea__v1Jim::placeholder{color:#6b6b7b}.ChatApp_sendBtn__5OPRI{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:38px;height:38px;border:none;border-radius:10px;background:linear-gradient(135deg,#1d00ff,#3d5afe);color:#fff;cursor:pointer;transition:opacity .15s ease}.ChatApp_sendBtn__5OPRI:disabled{opacity:.45;cursor:not-allowed}