@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap";
:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#101014;--panel:#17171c;--panel-2:#202027;--hover:#292930;--border:#2c2c34;--text:#f4f4f5;--muted:#a1a1aa;--subtle:#71717a;--accent:#3989f5;--accent-hover:#2877e3;--danger:#f87171}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);margin:0;font-family:Inter,DM Sans,system-ui,sans-serif}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}a{color:inherit;text-decoration:none}.app-shell{background:var(--bg);height:100dvh;min-height:520px;display:flex;overflow:hidden}.sidebar{z-index:5;background:#17171b;border-right:1px solid #ffffff0b;flex-direction:column;flex:0 0 274px;width:274px;padding:14px 12px 12px;transition:width .2s,flex-basis .2s;display:flex;position:relative}.sidebar-collapsed .sidebar{border:0;flex-basis:0;width:0;padding-left:0;padding-right:0;overflow:hidden}.sidebar-top{justify-content:space-between;align-items:center;height:44px;margin-bottom:20px;padding:0 3px;display:flex}.sidebar-brand{letter-spacing:-.3px;align-items:center;gap:9px;margin-left:9px;margin-right:auto;font-size:16px;font-weight:700;display:flex}.brand-symbol{color:#fff;background:linear-gradient(145deg,#1674f7,#42a5ff);border-radius:12px;place-items:center;width:34px;height:34px;font-family:Inter,sans-serif;font-size:25px;font-weight:800;line-height:1;display:grid}.brand-symbol.small{border-radius:9px;width:28px;height:28px;font-size:21px}.icon-button{color:#b9b9c1;background:0 0;border:0;border-radius:9px;place-items:center;width:36px;height:36px;display:grid}.icon-button:hover{background:var(--hover);color:#fff}.new-chat-button{text-align:left;background:#24242b;border:1px solid #34343d;border-radius:10px;align-items:center;gap:11px;height:42px;padding:0 12px;font-size:13px;font-weight:600;display:flex}.new-chat-button:hover{background:#2b2b33}.new-chat-button kbd{color:#888892;border:1px solid #464650;border-radius:4px;margin-left:auto;padding:2px 5px;font-size:10px}.sidebar-search{color:#85858e;background:#202026;border:1px solid #0000;border-radius:9px;align-items:center;gap:9px;height:38px;margin:13px 0 8px;padding:0 10px;display:flex}.sidebar-search:focus-within{border-color:#4c4c57}.sidebar-search input{color:#eee;background:0 0;border:0;outline:0;width:100%;font-size:12px}.sidebar-search input::placeholder{color:#82828b}.history-list{scrollbar-width:thin;scrollbar-color:#3b3b43 transparent;flex:1;padding:3px 0 14px;overflow:auto}.history-group{margin:10px 0 16px}.history-label{text-transform:uppercase;letter-spacing:.09em;color:#797983;padding:0 9px 7px;font-size:10px;font-weight:700}.history-row{color:#c9c9cf;border-radius:8px;align-items:center;height:36px;padding:0 5px 0 9px;display:flex;position:relative}.history-row:hover,.history-row.active{background:#28282f}.history-link{text-align:left;min-width:0;color:inherit;background:0 0;border:0;flex:1;align-items:center;gap:7px;height:100%;padding:0;font-size:12px;display:flex}.history-link span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.history-more{color:#9a9aa3;opacity:0;background:0 0;border:0;border-radius:6px;place-items:center;width:26px;height:28px;display:grid}.history-row:hover .history-more,.history-more:focus{opacity:1}.history-more:hover{background:#3a3a43}.chat-menu,.profile-menu{z-index:10;background:#25252c;border:1px solid #3a3a44;border-radius:10px;width:158px;padding:5px;position:absolute;top:32px;right:4px;box-shadow:0 12px 35px #0008}.chat-menu button,.profile-menu button{text-align:left;color:#ddd;background:0 0;border:0;border-radius:7px;align-items:center;gap:9px;width:100%;height:34px;padding:0 9px;font-size:11px;display:flex}.chat-menu button:hover,.profile-menu button:hover{background:#373740}.chat-menu .danger{color:#ff8d8d}.rename-form{align-items:center;gap:3px;width:100%;display:flex}.rename-form input{color:#fff;background:#111;border:1px solid #4d4d57;border-radius:5px;width:100%;min-width:0;padding:4px;font-size:11px}.rename-form button{background:var(--accent);border:0;border-radius:5px;place-items:center;width:24px;height:24px;display:grid}.history-empty,.history-hint{color:#777781;align-items:center;gap:8px;padding:15px 9px;font-size:11px;display:flex}.sidebar-bottom{border-top:1px solid #2a2a31;padding-top:10px;position:relative}.profile-button{text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:10px;width:100%;height:47px;padding:0 7px;display:flex}.profile-button:hover{background:#24242a}.avatar{color:#152c55;background:#83b5ff;border-radius:50%;flex:none;place-items:center;width:31px;height:31px;font-size:13px;font-weight:700;display:grid}.profile-copy{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.profile-copy strong{font-size:11px;font-weight:600}.profile-copy span{color:#888891;font-size:10px}.profile-menu{width:auto;inset:auto 0 55px}.usage-note{color:#686872;padding:4px 8px 0;font-size:9px}.main-panel{flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.topbar{border-bottom:1px solid #ffffff09;flex:none;align-items:center;gap:10px;height:62px;padding:0 25px;display:flex}.topbar-title{flex:1;align-items:center;gap:10px;font-size:13px;font-weight:600;display:flex}.account-index{color:#8b8b95;background:#24242b;border-radius:20px;padding:4px 8px;font-size:10px;font-weight:500}.topbar-profile{color:#ddd;background:#202027;border:1px solid #2b2b33;border-radius:24px;align-items:center;gap:8px;height:38px;padding:0 11px 0 5px;font-size:11px;display:flex}.topbar-profile .avatar{width:27px;height:27px}.mobile-menu,.mobile-close{display:none}.chat-scroll{scrollbar-width:thin;scrollbar-color:#393941 transparent;flex:1;min-height:0;overflow-y:auto}.welcome-scroll{justify-content:center;align-items:center;display:flex}.welcome{text-align:center;width:min(710px,100% - 44px);margin:auto;padding:48px 0 40px}.welcome-symbol{letter-spacing:-8px;color:#3b91ff;text-shadow:0 5px 40px #1479ed38;margin:0 auto 24px;font-family:Inter,sans-serif;font-size:67px;font-weight:800;line-height:1}.welcome h1{letter-spacing:-1.1px;margin:0 0 12px;font-size:29px;font-weight:650}.welcome p{color:#a5a5af;margin:0 auto 29px;font-size:14px;line-height:1.6}.suggestion-grid{text-align:left;grid-template-columns:1fr 1fr;gap:10px;display:grid}.suggestion-grid button{background:#19191f;border:1px solid #303039;border-radius:13px;flex-direction:column;gap:6px;min-height:72px;padding:15px 16px;display:flex}.suggestion-grid button:hover{background:#222229;border-color:#484852}.suggestion-grid span{font-size:12px;font-weight:600}.suggestion-grid small{color:#8f8f99;font-size:11px}.messages{flex-direction:column;gap:29px;width:min(790px,100% - 42px);margin:0 auto;padding:34px 0 45px;display:flex}.message{align-items:flex-start;gap:13px;display:flex}.message.user{justify-content:flex-end}.message-content{min-width:0;max-width:min(680px,90%)}.user-bubble{white-space:pre-wrap;overflow-wrap:anywhere;background:#292930;border-radius:19px;padding:12px 16px;font-size:14px;line-height:1.65}.assistant-avatar{color:#83baff;background:#1d3557;border-radius:50%;flex:none;place-items:center;width:29px;height:29px;margin-top:2px;display:grid}.assistant-text{color:#e7e7eb;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8}.message-error{color:#fca5a5;align-items:center;gap:6px;margin-top:10px;font-size:11px;display:flex}.typing-dots{align-items:center;gap:4px;height:20px;display:inline-flex}.typing-dots i{background:#a7a7b0;border-radius:50%;width:5px;height:5px;animation:1.1s ease-in-out infinite pulse}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}.composer-wrap{padding:12px 22px max(18px,env(safe-area-inset-bottom));background:linear-gradient(#0000 0%,#101014 18%);flex:none}.composer{background:#25252c;border:1px solid #3b3b44;border-radius:22px;width:min(790px,100%);margin:0 auto;padding:12px 12px 9px 17px;transition:border-color .15s;box-shadow:0 6px 30px #0002}.composer:focus-within{border-color:#555560}.composer textarea{resize:none;color:#f4f4f5;background:0 0;border:0;outline:0;width:100%;min-height:28px;max-height:220px;padding:2px 1px 8px;font-size:14px;line-height:1.55;display:block}.composer textarea::placeholder{color:#92929c}.composer-actions{align-items:center;gap:10px;min-height:32px;display:flex}.composer-tool{color:#a2a2ac;background:0 0;border:0;border-radius:7px;place-items:center;width:27px;height:27px;display:grid}.composer-tool:hover{color:#fff;background:#383840}.composer-hint{color:#85858f;flex:1;font-size:10px}.send-button{color:#152d57;background:#7fb5ff;border:0;border-radius:50%;flex:none;place-items:center;width:34px;height:34px;display:grid}.send-button:hover:not(:disabled){background:#9ac5ff}.send-button.stop{background:#55555f}.send-button.stop span{background:#fff;border-radius:2px;width:10px;height:10px}.auth-screen,.loading-screen{background:#101014;place-items:center;height:100dvh;padding:20px;display:grid}.auth-card{text-align:center;background:#19191f;border:1px solid #303039;border-radius:20px;width:min(420px,100%);padding:35px 32px;box-shadow:0 20px 80px #0004}.brand-lockup{justify-content:center;align-items:center;gap:10px;margin-bottom:35px;font-size:17px;font-weight:700;display:flex}.auth-card h1{letter-spacing:-.8px;margin:0 0 12px;font-size:25px}.auth-card p{color:#a2a2ac;margin:0 0 25px;font-size:13px;line-height:1.6}.primary-button{color:#fff;background:#3989f5;border:0;border-radius:10px;justify-content:center;align-items:center;height:44px;padding:0 19px;font-size:13px;font-weight:600;display:inline-flex}.primary-button:hover{background:#2877e3}.primary-button.compact{height:37px}.auth-foot{color:#777781;margin-top:22px;font-size:10px}.loading-screen{color:#9a9aa4;justify-content:center;align-items:center;gap:12px;font-size:12px;display:flex}.loading-screen .mate-mark{color:#4295ff;font-size:35px;font-weight:800}.modal-backdrop{z-index:30;background:#0009;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.settings-modal{background:#1b1b21;border:1px solid #393942;border-radius:17px;width:min(520px,100%);padding:22px;box-shadow:0 20px 80px #0008}.modal-heading{justify-content:space-between;align-items:flex-start;margin-bottom:24px;display:flex}.modal-heading h2{margin:0 0 6px;font-size:17px}.modal-heading p{color:#9999a3;margin:0;font-size:11px}.field-label{margin-bottom:8px;font-size:11px;font-weight:600;display:block}.instructions-input{resize:vertical;color:#eee;background:#111116;border:1px solid #393942;border-radius:9px;outline:0;width:100%;height:125px;padding:11px;font-size:12px;line-height:1.5}.instructions-input:focus{border-color:#568fdc}.modal-footer{justify-content:flex-end;gap:8px;margin-top:17px;display:flex}.secondary-button{color:#ddd;background:0 0;border:1px solid #41414b;border-radius:8px;height:37px;padding:0 14px;font-size:11px}.toast{z-index:40;background:#2b2b33;border:1px solid #45454f;border-radius:10px;align-items:center;gap:9px;max-width:calc(100% - 30px);padding:10px 13px;font-size:11px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #0007}.toast button{color:#aaa;background:0 0;border:0;place-items:center;display:grid}.mobile-scrim{display:none}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:760px){.sidebar{width:min(300px,86vw);padding-top:max(14px,env(safe-area-inset-top));flex-basis:min(300px,86vw);transition:transform .22s;position:fixed;inset:0 auto 0 0;transform:translate(-105%);box-shadow:15px 0 45px #0005}.mobile-sidebar-open .sidebar{transform:translate(0)}.sidebar-collapsed .sidebar{flex-basis:min(300px,86vw);width:min(300px,86vw);padding:14px 12px 12px;overflow:visible}.sidebar-toggle{display:none}.mobile-close,.mobile-menu{display:grid}.mobile-scrim{z-index:4;background:#0008;border:0;display:block;position:fixed;inset:0}.topbar{height:56px;padding:0 13px}.topbar-profile span,.topbar-profile>svg{display:none}.topbar-profile{padding-right:5px}.welcome{padding:30px 0}.welcome-symbol{margin-bottom:19px;font-size:55px}.welcome h1{font-size:24px}.welcome p{font-size:12px}.suggestion-grid{grid-template-columns:1fr}.suggestion-grid button{min-height:62px}.composer-wrap{padding:8px 10px max(12px,env(safe-area-inset-bottom))}.composer{border-radius:19px;padding:10px 10px 8px 14px}.composer-hint{font-size:9px}.messages{gap:22px;width:calc(100% - 28px);padding:22px 0 28px}.assistant-text,.user-bubble{font-size:13px}.auth-card{padding:29px 22px}}@media (min-width:761px){.mobile-sidebar-open .sidebar{transform:none}.mobile-scrim{display:none}}
