:root,:root[data-theme=light]{--chat-bg:#f7f7f4;--surface:#fff;--surface-strong:#f1f3f0;--surface-muted:#eceee9;--sidebar-bg:#f1f2ee;--border:#d7d9d2;--border-strong:#bfc3ba;--text:#20221f;--text-muted:#666c62;--accent:#10a37f;--accent-strong:#0e8f70;--accent-soft:#dff3ed;--button-bg:#20221f;--button-text:#fff;--user-bubble:#20221f;--user-bubble-text:#fff;--ai-bubble:#0000;--input-bg:#fff;--shadow:0 18px 50px #20221f14}:root[data-theme=dark]{--chat-bg:#161716;--surface:#20211f;--surface-strong:#282a27;--surface-muted:#242622;--sidebar-bg:#101110;--border:#343832;--border-strong:#4a5048;--text:#f3f4ef;--text-muted:#a6ada0;--accent:#19c394;--accent-strong:#20d5a4;--accent-soft:#19c39424;--button-bg:#f3f4ef;--button-text:#161716;--user-bubble:#e7ebe5;--user-bubble-text:#161716;--ai-bubble:#0000;--input-bg:#20211f;--shadow:0 18px 50px #00000047}.app-root,.chat-shell{background:var(--chat-bg);color:var(--text);height:100vh;min-height:100vh}.chat-shell,.chat-sidebar{display:flex;overflow:hidden}.chat-sidebar{background:var(--sidebar-bg);border-right:1px solid var(--border);flex-direction:column;height:100vh;inset:0 auto 0 0;padding:20px 14px;position:fixed;transition:transform .25s ease;width:260px;z-index:2000}.sidebar-brand{border-bottom:1px solid var(--border);margin-bottom:16px;padding:4px 8px 18px}.logo{align-items:center;display:flex;gap:12px}.logo-mark{flex:0 0 42px;height:42px;object-fit:contain;width:42px}.logo-title{color:var(--text);font-size:18px;font-weight:800;letter-spacing:0;line-height:1.15;margin:0}.logo-tagline{color:var(--text-muted);font-size:12px;line-height:1.35;margin:4px 0 0}.sidebar-actions{display:flex;flex-direction:column;gap:12px;min-height:0}.sidebar-button,.sidebar-input,.sidebar-select,.voice-output-button{background:#0000;border:1px solid var(--border);border-radius:8px;color:var(--text);min-height:42px;transition:background .18s ease,border-color .18s ease,transform .18s ease;width:100%}.sidebar-button{align-items:center;cursor:pointer;display:flex;font-size:14px;font-weight:600;gap:10px;padding:0 12px;text-align:left}.sidebar-button:hover,.voice-output-button:hover{background:var(--surface-muted);border-color:var(--border-strong)}.sidebar-button-primary{background:var(--surface);box-shadow:0 1px 0 #00000005}.field-group,.search-panel{width:100%}.field-label{color:var(--text-muted);display:block;font-size:12px;font-weight:700;letter-spacing:0;margin:2px 0 8px}.sidebar-input,.sidebar-select{outline:none;padding:0 12px}.composer-input:focus,.sidebar-input:focus,.sidebar-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.sidebar-input-wrapper{position:relative}.sidebar-input{padding-right:38px}.sidebar-input-icon{color:var(--text-muted);pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.search-results{grid-gap:6px;display:grid;gap:6px;margin-top:8px;max-height:180px;overflow:auto}.search-result-item{background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--text-muted);font-size:12px;line-height:1.35;overflow-wrap:anywhere;padding:10px}.chat-main{background:var(--chat-bg);display:flex;flex-direction:column;height:100vh;margin-left:260px;min-width:0;width:calc(100% - 260px)}.chat-scroll{flex:1 1;min-height:0;overflow-y:auto}.chat-thread{min-height:100%;padding:24px 24px 28px}.chat-header,.chat-thread{margin:0 auto;width:min(100%,880px)}.chat-header{display:flex;justify-content:flex-end;padding:16px 24px 0}.chat-header .field-group{min-width:200px;width:auto}.chat-header .field-label{display:none}.empty-state{align-items:center;color:var(--text);display:flex;flex-direction:column;justify-content:center;min-height:calc(100vh - 210px);text-align:center}.empty-logo{background:var(--accent);border-radius:12px;color:#fff;display:grid;font-weight:800;height:44px;margin-bottom:22px;place-items:center;width:44px}.empty-state h1{font-size:30px;font-weight:700;letter-spacing:0;line-height:1.18;margin:0;max-width:640px}.empty-state p{color:var(--text-muted);font-size:15px;line-height:1.6;margin:14px 0 0;max-width:500px}.personality-badge{background:var(--surface-strong);border:1px solid var(--border);border-radius:999px;color:var(--text);display:inline-block;font-size:13px;margin-top:8px;padding:6px 12px}.personality-badge strong{color:var(--accent)}.message-row{display:flex;flex-direction:column;gap:8px;margin-bottom:22px}.message-row-user{align-items:flex-end}.message-row-ai{align-items:flex-start}.message-bubble{border-radius:16px;color:var(--text);font-size:15px;line-height:1.62;max-width:min(76%,680px);overflow-wrap:anywhere;padding:14px 16px;white-space:pre-wrap}.message-bubble-user{background:var(--user-bubble);border-bottom-right-radius:5px;color:var(--user-bubble-text)}.message-bubble-ai{background:var(--ai-bubble);padding-left:0}.message-text{position:relative;z-index:1}.voice-output{margin-left:0}.voice-output-button{align-items:center;color:var(--text-muted);cursor:pointer;display:inline-flex;font-size:12px;font-weight:700;gap:8px;min-height:34px;padding:0 10px;width:auto}.composer-wrap{flex:0 0 auto;padding:14px 24px 22px}.composer{align-items:flex-end;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);display:flex;gap:8px;margin:0 auto;min-height:64px;padding:10px;width:min(100%,880px)}.composer-input{background:#0000;border:0;color:var(--text);flex:1 1;font-size:15px;line-height:1.45;max-height:140px;min-width:0;outline:none;padding:12px 10px;resize:none}.composer-input::placeholder,.sidebar-input::placeholder{color:var(--text-muted)}.icon-button{background:var(--surface-strong);border:1px solid var(--border);border-radius:10px;color:var(--text);cursor:pointer;display:grid;flex:0 0 42px;height:42px;place-items:center;transition:background .18s ease,color .18s ease,transform .18s ease;width:42px}.icon-button:hover{background:var(--surface-muted)}.icon-button-primary{background:var(--accent);border-color:var(--accent);color:#fff}.icon-button-primary:disabled{background:var(--surface-muted);border-color:var(--border);color:var(--text-muted);cursor:not-allowed}.icon-button-active{border-color:var(--accent);color:var(--accent)}.mobile-menu-button{background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);color:var(--text);cursor:pointer;display:grid;height:42px;left:14px;place-items:center;position:fixed;top:14px;width:42px;z-index:3000}.sidebar-overlay{background:#00000061;inset:0;position:fixed;z-index:1500}.thinking-loader{align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:12px;color:var(--text-muted);display:inline-flex;font-size:13px;font-weight:700;gap:10px;margin:2px 0 22px;padding:10px 12px;width:-webkit-fit-content;width:fit-content}.thinking-dot{animation:spin .8s linear infinite;border:2px solid var(--border);border-radius:999px;border-top-color:var(--accent);height:16px;width:16px}@keyframes spin{to{transform:rotate(1turn)}}.chat-history-list{display:flex;flex-direction:column;gap:4px;margin-top:10px}.history-item{align-items:center;border-radius:8px;color:var(--text-muted);cursor:pointer;display:flex;justify-content:space-between;padding:12px 14px;transition:all .2s ease}.history-item-content{align-items:center;display:flex;flex:1 1;gap:12px;overflow:hidden}.history-item:hover{background:var(--surface-light);color:var(--text-color)}.history-item.active{background:var(--accent-color);color:#fff}.history-icon{flex-shrink:0;font-size:16px}.history-title{font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes shimmer{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.generating-title{animation:shimmer 1.5s ease-in-out infinite;color:var(--text-muted);font-style:italic}.history-item.active .generating-title{color:#fffc}.delete-chat-btn{align-items:center;background:none;border:none;border-radius:4px;color:var(--text-muted);cursor:pointer;display:flex;justify-content:center;opacity:0;padding:6px;transform:translateX(10px);transition:all .2s ease}.history-item:hover .delete-chat-btn{opacity:1;transform:translateX(0)}.delete-chat-btn:hover{background:#ff4d4f1a;color:#ff4d4f;color:var(--error-color,#ff4d4f)}.history-item.active .delete-chat-btn{color:#ffffffb3}.history-item.active .delete-chat-btn:hover{background:#fff3;color:#fff}.history-empty{color:var(--text-muted);font-size:12px;padding:10px;text-align:center}.code-block-wrapper{background:#1e1e1e;border:1px solid var(--border);border-radius:8px;margin:12px 0;overflow:hidden}.code-block-header{align-items:center;background:#2d2d2d;border-bottom:1px solid #444;display:flex;justify-content:space-between;padding:6px 12px}.code-block-language{color:#ccc;font-size:11px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}.code-block-copy-btn{align-items:center;background:#0000;border:none;color:#aaa;cursor:pointer;display:flex;font-size:11px;gap:6px;transition:color .2s}.code-block-copy-btn:hover{color:#fff}.syntax-highlighter{background:#1e1e1e!important;font-size:13px;line-height:1.5;margin:0!important;padding:12px!important}.message-text p{margin:0 0 10px}.message-text p:last-child{margin:0}@media (max-width:768px){.chat-sidebar{padding-top:72px;transform:translateX(-300px);width:280px}.chat-sidebar-open{transform:translateX(0)}.chat-main{margin-left:0;width:100%}.chat-thread{padding:78px 16px 20px}.empty-state h1{font-size:24px}.message-bubble{max-width:90%}.composer-wrap{padding:12px 12px 16px}.composer{border-radius:12px}}body{background:var(--chat-bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;transition:background .2s ease,color .2s ease}#root,body,html{margin:0;overflow:hidden;padding:0}#root,body,html{height:100%;width:100%}*{box-sizing:border-box}button,input,select,textarea{font:inherit}.chat-box{flex:1 1}.sidebar{height:100%;width:250px}.hamburger-btn{background:#0000;border:none;cursor:pointer;display:none;font-size:26px;left:15px;position:absolute;top:15px;z-index:1000}@media (max-width:1024px){.sidebar{width:220px}.chat-box{padding:10px}}@media (max-width:768px){.hamburger-btn{display:block}.sidebar{width:250px}.chat-box{width:100%}}@media (max-width:500px){.sidebar{width:85%}}
/*# sourceMappingURL=main.2f14da89.css.map*/