/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.flex{display:flex}.table{display:table}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:root{color:#e2e2e2;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--border:#444;--panel:#1e1e1e;--panel-2:#2a2a2a;--input:#2c2c2c;--blue:#007bff;--blue-dark:#005c99;--text:#e2e2e2;--muted:#9e9e9e;background:#121212;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif}*{box-sizing:border-box}html,body{height:100%;color:var(--text);background:#121212;margin:0;overflow:hidden}button,input,textarea{font:inherit}button{color:inherit}.loading-screen{height:100vh;color:var(--muted);place-items:center;display:grid}.app-container{background:#121212;width:100vw;height:100vh;display:flex;overflow:hidden}.sidebar{z-index:4;background:#1a1a1a;border-right:1px solid #333;flex-direction:column;flex:0 0 275px;width:275px;transition:width .2s,flex-basis .2s;display:flex;position:relative;overflow:visible}.sidebar.collapsed{border:0;flex-basis:0;width:0}.sidebar.collapsed>*{display:none}.sidebar-header{border-bottom:1px solid #333;gap:.5rem;padding:.75rem;display:flex}.new-chat-button{cursor:pointer;text-align:left;background:#2a2a2a;border:1px solid #444;border-radius:5px;flex:1;padding:.55rem .7rem}.new-chat-button:hover,.import-button:hover,.chat-tools button:hover,.selection-bar button:hover,.sidebar-footer button:hover{background:#3a3a3a}.import-button,.square-button{cursor:pointer;background:#333;border:1px solid #444;border-radius:5px;min-width:2.3rem}.chat-tools{border-bottom:1px solid #333;gap:.35rem;padding:.55rem .65rem;display:flex}.chat-tools input{color:#e2e2e2;background:#2c2c2c;border:1px solid #444;border-radius:4px;outline:none;flex:1;min-width:0;padding:.38rem .5rem}.chat-tools input:focus,.settings-search:focus,.api-key-row input:focus{border-color:#6cb5ff}.chat-tools button,.selection-bar button{cursor:pointer;background:#2a2a2a;border:1px solid #444;border-radius:4px}.chat-tools button.active{background:#005c99;border-color:#007bff}.selection-bar{border-bottom:1px solid #333;grid-template-columns:1fr auto auto;align-items:center;gap:.25rem;padding:.42rem .55rem;font-size:.72rem;display:grid}.select-all-control{cursor:pointer;align-items:center;gap:.32rem;min-width:0;display:flex}.select-all-control input{accent-color:#007bff;flex:none;width:1rem;height:1rem;margin:0}.select-all-control input:disabled{cursor:default;opacity:.45}.selection-bar button{white-space:nowrap;padding:.28rem .35rem}.selection-bar button:disabled{cursor:default;opacity:.4}.danger-text{color:#ff4d4d!important}.chat-list{flex:1;min-height:0;padding:.25rem 0;overflow-y:auto}.chat-list-item{cursor:pointer;color:#aaa;align-items:center;gap:.45rem;min-height:41px;padding:.45rem .55rem .45rem .75rem;display:flex;position:relative}.chat-list-item:hover{background:#2a2a2a}.chat-list-item.active{background:#333}.chat-list-item.active .chat-list-title{color:#fff}.chat-list-item input[type=checkbox]{accent-color:#007bff;flex:none}.chat-list-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.chat-options-button{cursor:pointer;color:#888;background:0 0;border:0;flex:0 0 2rem;font-weight:700}.chat-popover{z-index:20;background:#2a2a2a;border:1px solid #444;border-radius:5px;flex-direction:column;min-width:110px;display:flex;position:absolute;top:35px;right:6px;overflow:hidden;box-shadow:0 5px 18px #0000004d}.chat-popover button{cursor:pointer;text-align:left;background:0 0;border:0;padding:.5rem .75rem}.chat-popover button:hover{background:#3a3a3a}.empty-list{color:#888;text-align:center;padding:1rem}.sidebar-footer{border-top:1px solid #333;gap:.5rem;padding:calc(.75rem + 3px) .7rem calc(1rem + 3px);display:flex}.sidebar-footer button{cursor:pointer;background:#2a2a2a;border:1px solid #444;border-radius:5px;min-height:36px}.settings-button-sidebar{text-align:left;flex:1}.collapse-button{width:36px;font-size:1.4rem}.main-content{flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.chat-header{background:#1a1a1a;border-bottom:1px solid #333;justify-content:space-between;align-items:center;gap:1rem;min-height:64px;padding:.55rem 1rem;display:flex}.chat-title-container{min-width:0}.chat-title{cursor:pointer;color:#e2e2e2;text-overflow:ellipsis;white-space:nowrap;max-width:min(60vw,800px);margin:0;font-size:1.08rem;font-weight:600;overflow:hidden}.active-model-label{color:#888;text-overflow:ellipsis;white-space:nowrap;max-width:min(65vw,850px);margin-top:2px;font-size:.7rem;display:block;overflow:hidden}.chat-title-input{color:#e2e2e2;background:#2c2c2c;border:1px solid #555;border-radius:4px;outline:none;width:min(60vw,800px);padding:.2rem .35rem}.header-buttons{gap:.45rem;display:flex}.header-buttons button{cursor:pointer;background:#2a2a2a;border:1px solid #444;border-radius:5px;width:38px;height:38px;font-size:1.05rem}.header-buttons button:hover{background:#3a3a3a}.chat-window{flex:1;min-height:0;padding:1rem max(1rem,50% - 500px);overflow:hidden auto}.load-more-button{cursor:pointer;color:#aaa;background:#2a2a2a;border:1px solid #444;border-radius:4px;margin:0 auto 1rem;padding:.35rem .7rem;display:block}.message-container{margin-bottom:1rem;display:flex}.message-container.user{justify-content:flex-end}.message-container.bot{justify-content:flex-start}.message-content-wrapper{min-width:0;max-width:90%;padding-top:22px;position:relative}.message-content-wrapper.editing{width:min(90%,800px)}.message-content-wrapper.editing .message-bubble{width:100%}.message-bubble{overflow-wrap:anywhere;white-space:pre-wrap;border-radius:.38rem;padding:.52rem .65rem;line-height:1.55}.message-bubble.user{color:#e7ecf3;background:#4a70a5}.message-bubble.bot{color:#121212;white-space:normal;background:#e2e2e2}.message-bubble.bot p{white-space:pre-wrap;margin:0 0 1.55em}.message-bubble.bot p:last-child{margin-bottom:0}.message-bubble.bot pre{color:#e2e2e2;white-space:pre;background:#2c2c2c;border-radius:4px;max-width:100%;padding:.75rem;overflow:auto}.message-bubble.bot code:not(pre code){background:#c8c8c8;border-radius:3px;padding:.08rem .25rem}.message-bubble table{border-collapse:collapse}.message-bubble th,.message-bubble td{border:1px solid #888;padding:.25rem .4rem}.message-options-container{align-items:center;display:flex;position:absolute;top:-2px}.message-options-container.user{flex-direction:row-reverse;right:0}.message-options-container.bot{left:0}.message-plus-button{cursor:pointer;color:#aaa;opacity:0;background:0 0;border:0;place-items:center;width:22px;height:22px;padding:0;line-height:1;transition:opacity .1s;display:grid}.message-content-wrapper:hover .message-plus-button,.message-plus-button:focus{opacity:1}.message-options-container:has(.message-options-menu) .message-plus-button{opacity:1}.message-plus-button:hover{color:#fff;background:0 0}.message-options-menu{gap:.22rem;margin:0 .3rem;display:flex}.message-options-menu button{cursor:pointer;color:#aaa;background:#2a2a2a;border:1px solid #444;border-radius:3px;padding:.15rem .35rem;font-size:.7rem}.message-options-menu button:hover{color:#fff;background:#3a3a3a}.edit-controls-container{gap:.3rem;margin-bottom:.25rem;display:flex}.edit-controls-container.user{justify-content:flex-end}.edit-controls-container button{cursor:pointer;background:#333;border:1px solid #444;border-radius:3px;padding:.2rem .45rem;font-size:.75rem}.edit-controls-container .save-button{background:#005c99}.message-bubble textarea{overflow-wrap:anywhere;resize:vertical;width:100%;min-width:0;max-width:100%;min-height:1.55rem;color:inherit;white-space:pre-wrap;word-break:break-word;background:0 0;border:0;outline:none;display:block;overflow-x:hidden}.text-muted{color:#9e9e9e}.thinking-button{cursor:pointer;color:#9e9e9e;text-align:left;background:0 0;border:0;padding:0}.thinking-button:hover,.thinking-button:focus-visible{color:#e2e2e2;text-decoration:underline}.reasoning-viewer{z-index:90;background:#1e1e1e;border:1px solid #444;border-radius:7px;flex-direction:column;width:min(680px,100vw - 2rem);height:min(420px,55dvh);min-height:180px;display:flex;position:fixed;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%);box-shadow:0 10px 35px #000000a6}.reasoning-viewer-header{border-bottom:1px solid #444;flex:none;justify-content:space-between;align-items:center;min-height:42px;padding:.45rem .55rem .45rem .75rem;display:flex}.reasoning-viewer-header button{cursor:pointer;color:#aaa;background:0 0;border:0;border-radius:3px;width:30px;height:30px;padding:0;font-size:1.4rem;line-height:1}.reasoning-viewer-header button:hover{color:#fff;background:#2a2a2a}.reasoning-viewer-body{overscroll-behavior:contain;overflow-wrap:anywhere;white-space:pre-wrap;flex:1;min-height:0;padding:.8rem;line-height:1.55;overflow:hidden auto}.message-input-area{background:#1a1a1a;border-top:1px solid #333;align-items:flex-end;gap:.5rem;padding:.75rem max(1rem,50% - 500px) 1rem;display:flex;position:relative}.expand-button{cursor:pointer;background:#2a2a2a;border:1px solid #444;border-radius:5px;flex:0 0 36px;width:36px;height:36px;margin-bottom:3px;padding:0;font-size:1.3rem}.message-input{flex:1;width:100%;min-width:0}.input-group{align-items:flex-end;display:flex}.input-group textarea{resize:none;color:#e2e2e2;background:#2c2c2c;border:1px solid #444;border-radius:5px 0 0 5px;outline:none;flex:1;min-height:42px;max-height:220px;padding:.55rem .65rem;overflow-y:auto}.input-group textarea:focus{border-color:#007bff}.send-button{align-self:stretch;min-width:72px;min-height:42px;border-radius:0 5px 5px 0!important}.inline-error{color:#ffb7bd;background:#2b1e20;border:1px solid #8b3038;border-radius:4px;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.45rem;padding:.35rem .55rem;font-size:.78rem;display:flex}.inline-error button{cursor:pointer;background:0 0;border:0}.modal-backdrop{z-index:100;background:#0009;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal-content{color:#e2e2e2;background:#1e1e1e;border:1px solid #444;border-radius:7px;width:min(500px,96vw);max-height:88vh;padding:1rem;position:relative;overflow-y:auto;box-shadow:0 10px 35px #0009}.modal-content.wide{width:min(720px,96vw)}.modal-content.fullscreen{flex-direction:column;width:min(900px,100vw - 4rem);height:calc(100vh - 4rem);max-height:none;display:flex;overflow:hidden}.modal-title{margin-bottom:1rem;font-size:1.05rem;font-weight:700}.close-modal-button{z-index:5;cursor:pointer;color:#aaa;background:#1e1e1e;border:0;border-radius:3px;width:30px;height:30px;margin:0 0 -30px auto;padding:0;font-size:1.4rem;display:block;position:sticky;top:0}.close-modal-button:hover{color:#fff}.setting-section{border-top:1px solid #333;padding:1rem 0}.setting-section.first{border-top:0;padding-top:.6rem}.setting-section h5{margin:0 0 .55rem;font-size:.92rem}.setting-section small,.toggle-row small{color:#888;margin-top:.28rem;font-size:.72rem;display:block}.api-key-row{gap:.5rem;display:flex}.api-key-row input,.settings-search{color:#e2e2e2;background:#2c2c2c;border:1px solid #444;border-radius:5px;outline:none;width:100%;min-width:0;padding:.42rem .55rem}.selected-model-summary{background:#242424;border:1px solid #555;border-radius:4px;margin-top:.45rem;padding:.42rem .55rem}.selected-model-summary span,.selected-model-summary strong,.selected-model-summary small{display:block}.selected-model-summary span{color:#888;margin-bottom:.15rem;font-size:.7rem}.selected-model-summary strong{color:#e2e2e2;font-size:.82rem}.selected-model-summary small{margin-top:.12rem}.toggle-row{cursor:pointer;justify-content:space-between;align-items:center;gap:1rem;display:flex}.toggle-row>span{min-width:0}.toggle-row input{accent-color:#007bff;flex:none;width:42px;height:20px}.settings-data-actions{gap:.6rem;display:grid}.settings-data-actions button{width:100%}.system-textarea{resize:none;color:#e2e2e2;background:#2c2c2c;border:1px solid #444;border-radius:5px;outline:none;flex:1;width:100%;height:auto;min-height:0;padding:.6rem}.system-prompt-tabs{border-bottom:1px solid #444;flex:none;gap:.35rem;margin-bottom:.75rem;display:flex;overflow-x:auto}.system-prompt-tabs button{cursor:pointer;color:#aaa;white-space:nowrap;background:0 0;border:1px solid #0000;border-bottom:0;border-radius:4px 4px 0 0;padding:.45rem .65rem}.system-prompt-tabs button:hover{color:#e2e2e2;background:#2a2a2a}.system-prompt-tabs button.active{color:#fff;background:#2a2a2a;border-color:#444}.system-tab-panel{flex:1;min-height:0;display:flex}.last-input-injection-panel{flex:1;min-height:0;overflow-y:auto}.prompt-injection-note{color:#aaa;margin:0 0 .75rem;font-size:.8rem}.injection-setting{background:#242424;border:1px solid #444;border-radius:5px;padding:.85rem}.injection-setting+.injection-setting{margin-top:.75rem}.injection-textarea{resize:vertical;color:#e2e2e2;background:#2c2c2c;border:1px solid #444;border-radius:5px;outline:none;width:100%;min-height:130px;margin-top:.7rem;padding:.6rem;display:block}.injection-textarea:focus{border-color:#007bff}.injection-textarea:disabled{cursor:default;opacity:.45}.modal-content.fullscreen .modal-actions{flex:none}.modal-actions{justify-content:flex-end;gap:.55rem;margin-top:1rem;display:flex}.btn-secondary,.btn-primary,.btn-danger{cursor:pointer;border:1px solid #0000;border-radius:4px;padding:.45rem .8rem}.btn-secondary{background:#333;border-color:#555}.btn-secondary:hover{background:#444}.btn-primary{color:#fff;background:#007bff;border-color:#007bff}.btn-primary:hover{background:#007bb5}.btn-danger{color:#fff;background:#dc3545;border-color:#dc3545}.btn-danger:hover{background:#c82333}.token-count-display{color:#aaa;background:#2a2a2a;border-radius:4px;padding:.45rem .55rem}.model-list,.provider-list{border:1px solid #333;border-radius:4px;max-height:210px;margin-top:.5rem;overflow-y:auto}.model-select-button,.provider-button{cursor:pointer;text-align:left;background:#2a2a2a;border:0;border-bottom:1px solid #333;flex-direction:column;align-items:flex-start;gap:.06rem;width:100%;padding:.34rem .6rem;display:flex}.model-select-button:last-child,.provider-button:last-child{border-bottom:0}.model-select-button:hover,.provider-button:hover{background:#333}.model-select-button.active,.provider-button.active{background:#005c99}.model-select-button small,.provider-button small{color:#aaa;margin:0}.provider-button:disabled{cursor:not-allowed;opacity:.35;text-decoration:line-through}.muted-row{color:#888;padding:.7rem;font-size:.8rem}.effort-row,.cache-ttl-row{flex-wrap:wrap;align-items:center;gap:.35rem;display:flex}.effort-row button,.cache-ttl-row button{cursor:pointer;background:#2a2a2a;border:1px solid #444;border-radius:4px;padding:.34rem .55rem}.effort-row button.active,.cache-ttl-row button.active{background:#005c99;border-color:#007bff}.cache-ttl-row{color:#aaa;margin-top:.7rem;font-size:.8rem}.cache-ttl-row button:disabled{cursor:default;opacity:.4}.compact-note{color:#aaa;font-size:.78rem}.slider-row{align-items:center;gap:.75rem;display:flex}.slider-row input{flex:1}.slider-row span{color:#aaa;text-align:right;min-width:3rem}.error-box{color:#ffb7bd;border:1px solid #8b3038;border-radius:4px;margin-top:.75rem;padding:.55rem}@media (width<=700px){html,body{overscroll-behavior:none;width:100%;height:100dvh;min-height:100dvh}.app-container{width:100%;height:100dvh;min-height:0}.sidebar{height:100%;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);position:absolute;inset:0 auto 0 0;box-shadow:8px 0 25px #00000080}.main-content{height:100%;min-height:0}.chat-header{padding-top:max(.55rem, env(safe-area-inset-top));flex:none}.chat-window{min-height:0;padding:.75rem}.message-input-area{padding:.6rem;padding-bottom:max(.6rem, env(safe-area-inset-bottom));flex:none}.input-group textarea{padding-top:.62rem;padding-bottom:.4rem}.sidebar-footer{padding:calc(.6rem + 3px);padding-bottom:calc(max(.6rem, env(safe-area-inset-bottom)) + 3px)}.modal-backdrop{height:100dvh;padding-top:max(1rem, env(safe-area-inset-top));padding-bottom:max(1rem, env(safe-area-inset-bottom))}.modal-content.fullscreen{width:calc(100% - 1rem);height:calc(100% - 1rem)}.modal-content.wide{max-height:100%}.message-content-wrapper{max-width:96%}.message-content-wrapper.editing{width:96%}.message-plus-button{opacity:1}.reasoning-viewer{width:calc(100% - 1rem);height:min(360px,50dvh);min-height:160px}}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
