:root{--text-primary: #1c140f;--text-secondary: #7A8A99;--bg-primary: #F8F1E7;--bg-secondary: #f9f7f4;--bg-white: #fffefc;--bg-secondary-rgb: 255, 249, 241;--bg-dark: #0B1D2A;--accent-orange: #E96E2B;--accent-orange-hover: #d35a1a;--accent-cyan: #2E7DAF;--accent-cyan-hover: #25628c;--accent-green: #2F6F4F;--accent-steel: #7A8A99;--border-color: #ddd8d0;--icon-bar-width: 48px;--sidebar-width: 260px;--sidebar-collapsed-width: 88px;--code-bg: #121416;--hover-opacity: .06;--selected-opacity: .12;--button-disabled: #c4c9ce;--button-enabled: #121416;--user-bubble-bg: #f0eae5;--user-bubble-border: #d3d3d3;--assistant-ink-shadow: rgba(18, 20, 22, .05)}[data-theme=dark]{--text-primary: #F6F3EE;--text-secondary: #7A8A99;--bg-primary: #121416;--bg-secondary: #0B1D2A;--bg-secondary-rgb: 11, 29, 42;--bg-dark: #000000;--accent-orange: #E96E2B;--accent-orange-hover: #ff7d3a;--accent-cyan: #2E7DAF;--accent-cyan-hover: #3d8ec4;--accent-green: #2F6F4F;--accent-steel: #7A8A99;--border-color: #1f3240;--code-bg: #000000;--hover-opacity: .1;--selected-opacity: .15;--button-disabled: #465561;--button-enabled: #F6F3EE;--user-bubble-bg: rgba(255, 255, 255, .05);--user-bubble-border: rgba(255, 255, 255, .2);--assistant-ink-shadow: rgba(0, 0, 0, .4)}*{margin:0;padding:0;box-sizing:border-box}html{width:100%;height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,sans-serif;line-height:1.5;color:var(--text-primary);background:var(--bg-primary);display:block;min-height:100vh;width:100%;overflow-x:hidden}#app{min-height:100vh;width:100%;position:relative}.icon-bar{width:var(--icon-bar-width);background:var(--bg-dark);display:flex;flex-direction:column;align-items:center;padding:1rem 0;gap:1rem;position:fixed;height:100vh;z-index:100}.icon-button{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#888;cursor:pointer;transition:all .2s;text-decoration:none}.icon-button:hover{background:#ffffff1a;color:#fff}.icon-button.active{background:var(--accent-orange);color:var(--text-primary);color:#fff}.icon-button.admin-gear{margin-top:auto;background:#ffffff14}.icon-button.admin-gear img{filter:invert(1)}.sidebar{width:var(--sidebar-width);background:var(--bg-white);border-right:1px solid var(--border-color);display:flex;flex-direction:column;padding:.75rem;transition:all .3s ease;margin-left:var(--icon-bar-width);height:100vh;position:fixed;z-index:90;resize:none;overflow-y:auto;overflow-x:hidden;min-width:var(--sidebar-collapsed-width);max-width:500px}.resize-handle{width:4px;height:100%;background:transparent;position:absolute;right:0;top:0;cursor:col-resize;z-index:100;transition:background-color .1s}.resize-handle:hover,.resize-handle.active{background:var(--border-color)}.sidebar.minimized{padding:.75rem .5rem}.sidebar-title{font-size:1.6rem}.sidebar-toggle{width:32px;height:32px;border-radius:8px;border:1px solid var(--border-color);background:var(--bg-secondary);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s ease,border-color .2s ease}.sidebar-toggle:hover{background:rgba(0,0,0,var(--hover-opacity));border-color:var(--accent-orange)}.sidebar.minimized .sidebar-header{justify-content:center}.sidebar.minimized .sidebar-title,.sidebar.minimized .search-input-wrapper,.sidebar.minimized .chat-list{display:none}.sidebar.minimized .sidebar-actions{justify-content:center}.sidebar-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;padding:.5rem .25rem;padding-top:0;font-size:1.2rem;font-weight:600;color:var(--text-primary)}.sidebar-actions{display:flex;gap:.75rem;margin-bottom:.75rem;align-items:center}.new-chat-button{width:36px;height:36px;border-radius:10px;border:1.5px solid var(--border-color);background:var(--bg-secondary);color:var(--text-primary);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;padding:0}.new-chat-button:hover{background:rgba(0,0,0,var(--hover-opacity));border-color:var(--accent-orange)}.new-chat-button:hover img{filter:brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(346deg) brightness(98%) contrast(89%)}.search-input-wrapper{position:relative;margin-bottom:.75rem}.search-input-wrapper.inline{flex:1;margin-bottom:0}.search-icon{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);pointer-events:none;opacity:.5}.search-input-wrapper input{flex:1;width:100%;height:36px;border:1.5px solid var(--border-color);border-radius:10px;padding:0 .85rem 0 2.5rem;background:var(--bg-white);color:var(--text-primary);font-size:.9rem;transition:all .2s}.search-input-wrapper input:focus{outline:none;border-color:var(--accent-orange);background:var(--bg-secondary)}.search-input-wrapper input::placeholder{color:var(--text-secondary)}.search-box{flex:1;height:36px;border:1.5px solid var(--border-color);border-radius:10px;padding:0 .85rem;background:var(--bg-primary);color:var(--text-primary);font-size:.9rem;transition:all .2s}.search-box:focus{outline:none;border-color:var(--accent-orange);background:var(--bg-secondary)}.search-box::placeholder{color:var(--text-secondary)}.chat-list{display:flex;flex-direction:column;gap:.25rem;overflow-y:hidden;overflow-x:visible;flex:1;margin-top:0;position:relative}.chat-section{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.chat-section-header{font-weight:600;color:var(--text-primary);font-size:.9rem}.chat-section-content{display:flex;flex-direction:column;gap:.25rem;overflow-y:auto;max-height:calc(40vh - 2rem);min-height:500px}.date-group{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.5rem}.date-header{font-size:.8rem;color:var(--text-secondary);padding:.25rem 0;position:sticky;top:0;background:var(--bg-secondary);z-index:1}.team-chat-item{display:flex;align-items:center;gap:.5rem}.team-member-avatar{width:26px;height:26px;border-radius:7px;background:var(--accent-orange);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:500;flex-shrink:0}.loading-indicator{text-align:center;padding:.5rem;color:var(--text-secondary);font-size:.8rem;display:none}.loading-indicator.show{display:block}.chat-group-date{font-size:.8rem;color:var(--text-secondary);padding:.5rem .85rem .25rem;font-weight:500;letter-spacing:.02em}.load-more{width:100%;padding:.6rem;margin-top:.5rem;background:transparent;border:1.5px solid var(--border-color);border-radius:10px;color:var(--text-secondary);font-size:.85rem;cursor:pointer;transition:all .2s}.load-more:hover{background:var(--accent-orange);border-color:var(--accent-orange);color:#fff}.team-header{cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:.5rem .25rem}.team-header:hover{color:var(--accent-orange)}.team-chat{display:flex;align-items:center;gap:.5rem;flex:1}.chat-item{padding:.7rem .85rem;border-radius:10px;cursor:pointer;transition:all .2s;color:var(--text-secondary);font-size:.9rem;opacity:1;display:flex;justify-content:space-between;align-items:center;position:relative}.chat-item-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:opacity .5s ease}.chat-item-title.renamed{animation:sidebar-title-fade .65s ease}.chat-item-menu{transition:opacity .2s;padding:4px;border-radius:4px;position:relative}.chat-item-menu-icon{opacity:0;transition:opacity .2s}.chat-item:hover .chat-item-menu-icon{opacity:1}.chat-item-menu svg{width:16px;height:16px}.dropdown-menu{position:absolute;background:var(--bg-secondary);border:1.5px solid var(--border-color);border-radius:12px;display:none;z-index:1000;min-width:170px;box-shadow:0 4px 20px #12141614;right:0;transform-origin:top right;max-height:calc(100vh - 200px);overflow-y:auto;transition:opacity .2s ease,transform .2s ease;opacity:0;transform:scale(.95);scrollbar-width:thin;scrollbar-color:var(--border-color) transparent}.dropdown-menu.show{display:block;opacity:1;transform:scale(1)}.dropdown-menu::-webkit-scrollbar{width:6px}.dropdown-menu::-webkit-scrollbar-track{background:transparent}.dropdown-menu::-webkit-scrollbar-thumb{background-color:var(--border-color);border-radius:3px}.dropdown-menu::-webkit-scrollbar-thumb:hover{background-color:var(--accent-orange)}.dropdown-item{padding:.5rem 1rem;display:flex;align-items:center;gap:.5rem;color:var(--text-secondary);transition:all .2s;cursor:pointer}.dropdown-item:hover{background:rgba(0,0,0,var(--hover-opacity))}.dropdown-item.delete{color:#dc3545}.dropdown-item.delete:hover{background:#dc35451a}.dropdown-item svg{width:16px;height:16px}.chat-item:hover{background:rgba(0,0,0,var(--hover-opacity))}.chat-item.active{background:rgba(0,0,0,var(--selected-opacity));color:var(--text-primary)}.main-content{margin-left:calc(var(--icon-bar-width) + var(--sidebar-width));transition:margin-left .3s ease,width .3s ease;width:calc(100% - var(--icon-bar-width) - var(--sidebar-width));height:100vh;display:flex;flex-direction:column;position:relative;overflow:hidden;background:var(--bg-secondary)}.sidebar.minimized~.main-content{margin-left:calc(var(--icon-bar-width) + var(--sidebar-collapsed-width));width:calc(100% - var(--icon-bar-width) - var(--sidebar-collapsed-width))}.input-flex-row{display:flex;align-items:stretch;position:relative}.token-counter-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem;font-size:.7rem;color:var(--text-secondary)}.token-counter-close{cursor:pointer;opacity:.6}.token-counter-close:hover{opacity:1}.cost{font-size:1rem;font-weight:500;color:var(--text-primary);margin-bottom:.25rem;text-align:center}.token-details{color:var(--text-secondary);font-size:.7rem;text-align:center}.token-info-button{position:absolute;top:.5rem;right:.5rem;background:#f0f0f0;color:#666;width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:90;transition:all .2s ease;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;font-family:JetBrains Mono,Fira Mono,Source Code Pro,SF Mono,Consolas,Liberation Mono,Menlo,monospace}[data-theme=dark] .token-info-button{background:#333;color:#999}.token-info-button:hover{background:#e5e5e5}[data-theme=dark] .token-info-button:hover{background:#444}.token-info-button.show-cost{width:auto;padding:0 .5rem;justify-content:space-between}.token-info-button .cost-icon{display:inline-block;font-family:JetBrains Mono,Fira Mono,Source Code Pro,SF Mono,Consolas,Liberation Mono,Menlo,monospace}.token-info-button.show-cost .cost-icon{margin-right:.25rem}.token-info-button .cost-display{display:none;align-items:center;gap:.25rem;font-family:JetBrains Mono,Fira Mono,Source Code Pro,SF Mono,Consolas,Liberation Mono,Menlo,monospace}.token-info-button.show-cost .cost-display{display:flex}.token-info-button .cost-value{color:var(--text-primary);font-weight:500;font-family:JetBrains Mono,Fira Mono,Source Code Pro,SF Mono,Consolas,Liberation Mono,Menlo,monospace}.token-info-button .cost-close{cursor:pointer;color:var(--text-secondary);font-size:1rem;line-height:1;transition:color .2s ease}.token-info-button .cost-close:hover{color:var(--text-primary)}.chat-container{flex:1;overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;padding:60px 0 200px;display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.chat-container:after{content:"";position:fixed;bottom:0;left:calc(var(--icon-bar-width) + var(--sidebar-width));right:0;height:200px;background:linear-gradient(to bottom,rgba(var(--bg-secondary-rgb),0),rgba(var(--bg-secondary-rgb),.8) 40%,rgba(var(--bg-secondary-rgb),1) 70%);backdrop-filter:blur(0px);-webkit-backdrop-filter:blur(0px);pointer-events:none;z-index:50;transition:left .3s ease}.sidebar.minimized~.main-content .chat-container:after{left:calc(var(--icon-bar-width) + var(--sidebar-collapsed-width))}.message-row{width:100%;max-width:850px;margin:0 auto 1.5rem;transition:background-color .2s;border-bottom:none}.message-row[data-role=user]{padding-left:54px}.message-row[data-role=user]+.message-row[data-role=user]{margin-top:.15rem;margin-bottom:0}.message-row[data-role=user]:not(:last-child){margin-bottom:.25rem}.message-row[data-role=user] .message-text{border-radius:18px 18px 12px}.message-row[data-role=assistant]+.message-row[data-role=user] .message-text,.message-row:first-child[data-role=user] .message-text{border-radius:18px 18px 10px}.message-row[data-role=user]+.message-row[data-role=assistant] .message-text,.message-row[data-role=user]:last-child .message-text{border-radius:14px 14px 18px 18px}.message-row[data-role=user]+.message-row[data-role=user] .message-text{border-radius:12px}.message-content{padding:0 24px;display:flex;gap:.75rem;position:relative;width:100%}.message-row.highlighted .message-content{box-shadow:0 0 0 3px #e96e2b59;border-radius:24px}.message-row.pii-flagged .message-content:before{content:"";position:absolute;inset:12px 24px;border-radius:16px;border:1px solid rgba(239,68,68,.4);pointer-events:none}.message-row[data-role=user] .message-content{flex-direction:row;justify-content:flex-end}.message-row[data-role=user] .message-text{background-color:var(--user-bubble-bg);color:var(--text-primary);border-radius:22px 22px 6px;padding:.95rem 1.25rem;max-width:70%;word-wrap:break-word;display:flex;flex-direction:column;gap:.5rem;margin-left:auto;align-self:flex-end;width:fit-content}.message-row[data-role=user] .avatar{order:2;align-self:flex-end;margin-bottom:-2px}.message-row[data-role=user] .message-text{order:1;margin-bottom:.25rem}.message-row[data-role=user]+.message-row[data-role=user] .message-text{margin-bottom:0}.message-row[data-role=assistant]+.message-row[data-role=user],.message-row[data-role=user]+.message-row[data-role=assistant]{margin-top:.4rem}.avatar-spacer{visibility:hidden;background:transparent}.message-row[data-role=assistant] .message-content{flex-direction:row;justify-content:flex-start}.message-row[data-role=assistant] .message-text{flex:1;max-width:95%;padding:.5rem 0 0;background:transparent;border:none;box-shadow:none;border-radius:0;font-size:1rem;display:flex;flex-direction:column}[data-theme=dark] .message-row[data-role=user] .message-text{background-color:rgba(var(--bg-secondary-rgb),.5);color:var(--text-primary);border:1.5px solid var(--text-primary)}.message-header{margin-top:-7px;display:flex;align-items:baseline}.message-sender{font-weight:700;margin-right:8px}.message-time{color:var(--text-secondary);font-size:.8rem}.avatar{width:36px;height:36px;border-radius:10px;background:var(--accent-orange);display:flex;align-items:center;justify-content:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,sans-serif;font-size:.8rem;font-weight:500;color:#fff;flex-shrink:0;line-height:14px;padding:4px;align-self:flex-start;margin-top:.35rem}.avatar img{width:100%;height:100%;object-fit:cover;border-radius:10px}.avatar-provider-fallback{width:100%;height:100%;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:600;color:var(--text-primary)}.message-text{color:var(--text-primary);width:100%}.message-body{display:block}.message-text h1,.message-text h2,.message-text h3,.message-text h4{margin:1rem 0 .5rem;color:var(--text-primary)}.message-text p{margin-bottom:.75rem}.message-text p:last-child{margin-bottom:0}.message-text pre{background:var(--code-bg);border-radius:6px;overflow-x:auto;max-width:100%}.message-row[data-role=user] .message-text pre{background:#0000000d}[data-theme=dark] .message-row[data-role=user] .message-text pre{background:#ffffff0d}.message-text code{font-family:Menlo,Monaco,Courier New,monospace;font-size:.9em}.message-text p code{background:var(--code-bg);padding:.2em .4em;border-radius:3px;color:#e3e3e3}.message-row[data-role=user] .message-text p code{background:#00000014;color:var(--text-primary)}[data-theme=dark] .message-row[data-role=user] .message-text p code{background:#ffffff1a;color:var(--text-primary)}.message-text ul,.message-text ol{margin:.75rem 0;padding-left:1.5rem}.message-text blockquote{border-left:4px solid var(--accent-orange);padding-left:.75rem;margin:.75rem 0;color:var(--text-secondary)}.message-row[data-role=user] .message-text blockquote{border-left:4px solid var(--text-secondary);color:var(--text-secondary)}.code-block{background:#0c121a;border-radius:12px;margin:.35rem 0 1.25rem;border:1px solid rgba(255,255,255,.08)}.code-block-header{display:flex;align-items:center;justify-content:space-between;padding:.6rem .9rem;border-bottom:1px solid rgba(255,255,255,.08)}.code-language{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#ffffffb3}.code-copy-btn{border:none;border-radius:999px;padding:.2rem .9rem;font-size:.8rem;cursor:pointer;background:#ffffff1f;color:#fff;transition:background .2s ease;min-width:72px;text-align:center}.code-copy-btn:hover{background:#fff3}.code-copy-btn.copied{background:#2ebd8559;color:#e8fff4}.code-copy-btn:disabled{cursor:default;opacity:.7}.code-block pre{margin:0;padding:1rem}[data-theme=light] .code-block{background:#111827;border-color:#ffffff1f}[data-theme=light] .code-copy-btn{background:#fff3;color:#fff}.message-row[data-role=error] .message-text{background-color:var(--accent-red);color:#fff;border-radius:18px;padding:.75rem 1rem;max-width:80%;margin:0 auto;text-align:center}.input-container{position:fixed;bottom:0;left:calc(var(--icon-bar-width) + var(--sidebar-width));right:0;padding:1.5rem;transition:left .3s ease;max-height:33vh;display:flex;flex-direction:column;z-index:70;background:transparent}.sidebar.minimized~.main-content .input-container{left:calc(var(--icon-bar-width) + var(--sidebar-collapsed-width))}.input-wrapper{max-width:850px;min-width:300px;margin:0 auto;width:100%;border:1.5px solid var(--border-color);border-radius:20px;background:var(--bg-white);box-shadow:0 4px 16px #1214160f;padding:.65rem .75rem;position:relative;max-height:calc(33vh - 3rem);display:flex;flex-direction:column}.input-wrapper .token-counter{position:absolute;bottom:calc(100% + 8px);left:auto;right:1rem;z-index:1000}#message-input{width:100%;min-height:52px;max-height:calc(33vh - 6rem);padding:.5rem 3rem .5rem .5rem;border:none;background:transparent;color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,sans-serif;font-size:.95rem;resize:none;overflow-y:auto;line-height:1.5}#message-input::placeholder{color:var(--text-secondary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,sans-serif}.bottom-row{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1000}.model-selector{display:flex;align-items:center;gap:.25rem;flex:1;position:relative;z-index:1000}#send-button{background-color:transparent;border:none;color:var(--button-disabled);cursor:pointer;transition:all .2s;padding:.5rem;margin-left:.5rem;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center}#send-button.enabled{color:var(--button-enabled);background-color:var(--accent-orange);color:#fff}#send-button:hover.enabled{background-color:var(--accent-orange-hover);transform:scale(1.05)}#send-button:disabled{opacity:.5;cursor:not-allowed}.stop-inline-button{background:transparent;border:none;color:var(--text-primary);border-radius:12px;width:44px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;position:relative;transition:all .2s ease;margin-left:.5rem}.stop-inline-button:hover{transform:translateY(-1px)}.stop-square{width:10px;height:10px;background:var(--accent-orange);border-radius:3px;position:relative;z-index:2}.stop-arc{position:absolute;width:30px;height:30px;border-radius:50%;border:2px solid transparent;border-top-color:#e96e2bd9;border-right-color:#e96e2bd9;animation:spin-partial .9s linear infinite;z-index:1}@keyframes spin-partial{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.composer-guard{margin:.25rem 0 0;color:#e73f15;font-size:.9rem;font-weight:600}.token-counter{min-width:180px;max-width:230px;background:var(--bg-secondary);border:1.5px solid var(--border-color);border-radius:14px;box-shadow:0 4px 20px #12141614;padding:14px 18px 12px;font-family:inherit;font-size:15px;color:var(--text-primary);height:auto;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s;pointer-events:none;display:block;right:0}.token-counter.show{transform:translateY(0);opacity:1;visibility:visible;z-index:1000;pointer-events:all;transition:opacity .3s ease,visibility .3s}.token-counter-header{display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:14px;margin-bottom:6px}.token-counter-title{color:var(--text-secondary);letter-spacing:.02em}.token-counter-actions{display:flex;align-items:center;gap:8px}.token-counter-refresh{cursor:pointer;color:var(--text-secondary);display:flex;align-items:center;transition:color .15s}.token-counter-refresh:hover{color:var(--text-primary)}.token-counter-close{cursor:pointer;font-size:18px;color:var(--text-secondary);transition:color .15s;line-height:1}.token-counter-close:hover{color:var(--text-primary)}.cost{font-size:1.6em;font-weight:700;color:var(--text-primary);margin-bottom:2px;text-align:left}.token-details{font-size:13px;color:var(--text-secondary);margin-top:2px;text-align:left;letter-spacing:.01em;line-height:1.5}.token-details .token-row{display:flex;gap:8px;align-items:center}.model-add-button{width:28px;height:28px;border-radius:8px;border:1.5px solid var(--border-color);background:var(--bg-primary);color:var(--text-primary);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;padding:0}[data-theme=dark] .model-add-button{background:var(--bg-secondary)}.model-add-button:hover{background:var(--accent-orange);border-color:var(--accent-orange);color:#fff}.model-pills{display:flex;flex-wrap:wrap;gap:.4rem;padding:.4rem 0 .2rem}.model-pill{display:flex;align-items:center;gap:.35rem;padding:.25rem .65rem;background:#e96e2b1f;border:1px solid rgba(233,110,43,.4);border-radius:999px;font-size:.78rem;font-weight:500;color:var(--accent-orange)}.model-pill-remove{border:none;background:transparent;color:inherit;cursor:pointer;padding:0;line-height:1;font-size:1rem}.model-pill-remove:hover{opacity:.7}.model-dropdown{position:absolute;bottom:calc(100% + 66px);left:-8px;background:var(--bg-white);border:1.5px solid rgba(18,20,22,.08);border-radius:18px;display:flex;flex-direction:column;z-index:9999;min-width:320px;width:min(420px,calc(100vw - 64px));max-height:420px;overflow:hidden;box-shadow:none}[data-theme=dark] .model-dropdown{box-shadow:0 4px 24px #0000004d}.model-search-field{position:relative;padding:.4rem .6rem;background:var(--bg-white);flex:1;display:flex;align-items:center}.model-search-row{display:flex;align-items:center;gap:.75rem;padding:.4rem .6rem}.model-search-icon{position:absolute;top:50%;left:1.2rem;transform:translateY(-50%);color:var(--text-secondary);pointer-events:none}.model-filter-input{width:100%;padding:.85rem 1.2rem .85rem 2.7rem;border:1px solid rgba(18,20,22,.08);outline:none;font-size:.92rem;color:var(--text-primary);background:var(--bg-white);border-radius:999px}.multi-select-toggle{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .5rem;cursor:pointer;font-size:.85rem;color:var(--text-secondary);-webkit-user-select:none;user-select:none;border:1px solid rgba(18,20,22,.08);border-radius:999px;flex-shrink:0}.multi-select-toggle input[type=checkbox]{width:16px;height:16px;cursor:pointer}.multi-select-toggle:hover{color:var(--text-primary)}.model-option-list{max-height:360px;overflow-y:auto}.model-option{padding:.75rem 1rem;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.85rem;border-bottom:1px solid rgba(0,0,0,.04);background:var(--bg-white)}.model-option:last-child{border-bottom:none}.model-option.selected{background:#e96e2b14}.model-provider-logo{width:40px;height:40px;border-radius:12px;background:#0000000d;display:flex;align-items:center;justify-content:center;overflow:hidden}.model-provider-logo img{width:100%;height:100%;object-fit:cover}.model-provider-logo.placeholder{color:#fff;font-weight:600}.model-option-body{flex:1;display:flex;flex-direction:column;gap:.2rem}.model-option-header{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.model-provider{font-size:.8rem;color:var(--text-secondary)}.model-cost-condensed{display:flex;flex-direction:column;gap:.05rem}.model-cost-line{font-family:JetBrains Mono,Fira Mono,Source Code Pro,SF Mono,Consolas,Liberation Mono,Menlo,monospace;font-size:.82rem;color:var(--text-primary);display:flex;flex-wrap:wrap;gap:.25rem;align-items:baseline}.cost-divider{opacity:.5}.model-cost-footnote{font-size:.65rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.08em;margin-left:auto}.model-option-indicator{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--accent-green)}.model-empty{padding:1.2rem;font-size:.9rem;color:var(--text-secondary);background:var(--bg-white)}.model-option:hover{background:rgba(0,0,0,var(--hover-opacity))}.model-option.selected{background:rgba(0,0,0,var(--selected-opacity))}.input-box{position:relative;background:var(--bg-secondary);display:flex;align-items:flex-end;overflow:hidden;border-radius:12px;z-index:1;max-height:calc(33vh - 6rem)}#message-input:focus{outline:none}#message-input:disabled{opacity:.7;cursor:not-allowed}#send-button svg{width:18px;height:18px;transform:rotate(0)}.user-icon{position:fixed;top:1rem;right:1rem;background:var(--accent-orange);border:none;outline:none;color:#fff;font-weight:500;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1rem;z-index:110;cursor:pointer;-webkit-user-select:none;user-select:none}.user-menu{position:fixed;top:calc(1rem + 50px);right:1rem;background:var(--bg-secondary);border:1.5px solid var(--border-color);border-radius:14px;width:250px;overflow:hidden;box-shadow:0 4px 20px #12141614;z-index:100;display:block}.user-menu-header{padding:1rem;border-bottom:1px solid var(--border-color)}.user-menu-name{font-weight:500;color:var(--text-primary)}.user-menu-email{font-size:.9rem;color:var(--text-secondary)}.user-menu-items{padding:.5rem 0}.user-menu-item{padding:.75rem 1rem;display:flex;align-items:center;gap:.75rem;color:var(--text-primary);text-decoration:none;cursor:pointer;transition:all .2s;background:transparent;border:none;width:100%;font:inherit;justify-content:flex-start}.user-menu-item:hover{background:rgba(0,0,0,var(--hover-opacity))}.user-menu-item svg,.user-menu-item img{color:var(--text-secondary);margin-top:1px}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--accent-orange)}.avatar[data-role=user]{background:var(--accent-orange)}.avatar[data-role=assistant]{background:var(--accent-cyan)}.chat-filter{margin:.5rem .75rem .75rem}.chat-filter select{width:100%;padding:.5rem;border:1px solid var(--border-color);border-radius:4px;background:var(--bg-secondary);color:var(--text-primary);font-size:.9rem;cursor:pointer}.chat-filter select:focus{outline:none;border-color:var(--accent-orange)}.modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.modal{background-color:var(--bg-secondary);border-radius:16px;border:1.5px solid var(--border-color);padding:24px;width:420px;max-width:90%;box-shadow:0 8px 32px #1214161f}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-title{font-size:1.2rem;font-weight:600}.modal-close{background:none;border:none;cursor:pointer;font-size:1.5rem;color:var(--text-primary)}.modal-body{margin-bottom:20px}.modal-footer{display:flex;justify-content:flex-end;gap:10px}.modal-btn{padding:10px 20px;border-radius:10px;border:none;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s}.modal-btn-cancel{background-color:var(--bg-primary);color:var(--text-primary);border:1.5px solid var(--border-color)}.modal-btn-cancel:hover{background-color:var(--bg-secondary)}.modal-btn-confirm{background-color:var(--accent-orange);color:#fff}.modal-btn-confirm:hover{background-color:var(--accent-orange-hover)}.modal-btn-delete{background-color:#c8463d;color:#fff}.modal-btn-delete:hover{background-color:#b13832}.pii-summary-list{list-style:disc;padding-left:1.2rem;margin:.5rem 0 0;color:var(--text-secondary)}.code-block-wrapper{position:relative;margin:.75rem 0}.copy-button{position:absolute;top:.5rem;right:.5rem;padding:.25rem .5rem;font-size:.8rem;color:#e3e3e3;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:4px;cursor:pointer;transition:all .2s;z-index:1}.copy-button:hover{background:#fff3}pre{position:relative;border-radius:6px;overflow:auto;margin:0!important;background-color:#282c34!important}pre code{font-family:Menlo,Monaco,Courier New,monospace;font-size:.9em;padding-right:4rem!important}.message-text table{border-collapse:collapse;width:100%;margin:1rem 0;font-size:.9em}.message-text th,.message-text td{padding:.75rem;border:1px solid var(--border-color);text-align:left}.message-text th{background:#0000000d;font-weight:600}[data-theme=dark] .message-text th{background:#ffffff0d}.message-text tr:nth-child(2n){background:#00000005}[data-theme=dark] .message-text tr:nth-child(2n){background:#ffffff05}.message-text table code{background:var(--code-bg);padding:.2em .4em;border-radius:3px;font-size:.9em}@media(max-width:600px){.token-info-button{top:auto;bottom:.5rem;right:.5rem;font-size:.8rem}.token-info-button.show-cost{padding:0 .3rem}}@media(max-width:600px){.token-counter{right:0;left:0;width:94%;min-width:94%;max-width:94%;margin:0 auto;bottom:calc(100% + 8px)}.token-counter.show{transform:translateY(0)}.input-flex-row{flex-direction:column}}@keyframes typing-glisten{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}@keyframes skeleton-wave{0%{background-position:0% 50%}to{background-position:200% 50%}}@keyframes dot-ellipsis{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}to{content:""}}@keyframes sidebar-title-fade{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}:root{--logo-font: "Newreader", "EB Garamond", Georgia, serif}.brand-logo{font-family:var(--logo-font);letter-spacing:.01rem;font-weight:500}.billing-toast{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border:1px solid #d0d7e2;border-radius:12px;background:#f7f9fc;margin:8px 0 4px}.billing-toast.info{border-color:#b7cbff;background:#eef3ff}.billing-toast.warning{border-color:#ffd597;background:#fff6e6}.billing-toast.danger{border-color:#f199a6;background:#ffecef}.billing-toast-text p{margin:2px 0 0;color:#3b414f}.billing-toast-actions{display:flex;align-items:center;gap:8px}.billing-toast-link{font-weight:700;color:#0b5fff;text-decoration:none}
