@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap";:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--page:#212121;--sidebar:#171717;--sidebar-hover:#252525;--surface:#2f2f2f;--surface-hover:#3a3a3a;--line:#ffffff1a;--text:#ececec;--muted:#a3a3a3;--faint:#737373;--accent:#8b5cf6;--accent-bright:#a78bfa;--danger:#ff7a7a}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{background:var(--page);color:var(--text);-webkit-font-smoothing:antialiased;font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,textarea,input{color:inherit;font:inherit}button{border:0}:is(button:focus-visible,textarea:focus-visible,input:focus-visible,a:focus-visible){outline:2px solid var(--accent-bright);outline-offset:2px}.auth-page{background:#0d0d0d;grid-template-columns:minmax(430px,1.05fr) minmax(480px,.95fr);min-height:100vh;display:grid}.auth-brand-panel{background:radial-gradient(circle at 72% 38%,#a78bfa54,#0000 28%),radial-gradient(circle at 28% 78%,#6d28d942,#0000 30%),linear-gradient(145deg,#130d23 0%,#211443 48%,#4c1d95 100%);flex-direction:column;justify-content:space-between;min-height:100vh;padding:42px 52px;display:flex;position:relative;overflow:hidden}.auth-brand-panel:before,.auth-brand-panel:after{content:"";border:1px solid #ffffff17;border-radius:50%;position:absolute}.auth-brand-panel:before{width:520px;height:520px;top:18%;right:-180px}.auth-brand-panel:after{width:340px;height:340px;top:29%;right:-88px}.auth-brand,.auth-mobile-brand{z-index:1;letter-spacing:-.03em;align-items:center;gap:11px;font-family:Space Grotesk,sans-serif;font-size:20px;font-weight:700;display:flex;position:relative}.auth-brand span,.auth-mobile-brand span{background:#ffffff1f;border:1px solid #ffffff3d;border-radius:11px;place-items:center;width:34px;height:34px;display:grid;box-shadow:inset 0 1px #ffffff29}.auth-pitch{z-index:1;max-width:570px;padding:40px 0 70px;position:relative}.auth-orbit{background:#ffffff1a;border:1px solid #fff3;border-radius:50%;place-items:center;width:58px;height:58px;margin-bottom:34px;display:grid;box-shadow:0 0 50px #c4b5fd3b}.auth-pitch p,.auth-kicker{color:#c4b5fd;letter-spacing:.19em;margin:0 0 17px;font-size:11px;font-weight:700}.auth-pitch h1{letter-spacing:-.065em;margin:0 0 25px;font-family:Space Grotesk,sans-serif;font-size:clamp(48px,5.2vw,78px);font-weight:600;line-height:.98}.auth-pitch>span{color:#ffffffab;max-width:470px;font-size:17px;line-height:1.65;display:block}.auth-brand-panel small{z-index:1;color:#ffffff75;font-size:12px;position:relative}.auth-form-panel{background:#111;place-items:center;min-height:100vh;padding:48px;display:grid}.auth-card{width:min(100%,410px)}.auth-mobile-brand{margin-bottom:44px;display:none}.auth-card h2{letter-spacing:-.045em;margin:0 0 10px;font-family:Space Grotesk,sans-serif;font-size:32px}.auth-subtitle{color:var(--muted);margin:0 0 31px;font-size:14px;line-height:1.6}.auth-card form,.auth-card label{flex-direction:column;display:flex}.auth-card form{gap:18px}.auth-card label{color:#d7d7d7;gap:8px;font-size:13px;font-weight:600}.auth-card input{background:#1a1a1a;border:1px solid #343434;border-radius:12px;width:100%;height:50px;padding:0 15px;transition:border-color .15s,box-shadow .15s}.auth-card input::placeholder{color:#646464}.auth-card input:focus{border-color:#7557ca;outline:none;box-shadow:0 0 0 3px #8b5cf621}.password-input{position:relative}.password-input input{padding-right:48px}.password-input button{width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border-radius:8px;place-items:center;display:grid;position:absolute;top:7px;right:7px}.password-input button:hover{color:var(--text);background:#292929}.auth-error{color:#fca5a5;background:#7f1d1d2e;border:1px solid #f8717147;border-radius:10px;padding:11px 13px;font-size:13px}.auth-submit{color:#fff;cursor:pointer;background:linear-gradient(135deg,#7c3aed,#9b72f1);border-radius:12px;height:50px;font-weight:700;transition:filter .15s,transform .15s;box-shadow:0 10px 30px #7c3aed3b}.auth-submit:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.auth-submit:disabled{cursor:wait;opacity:.65}.auth-switch{color:#bca8f4;cursor:pointer;background:0 0;width:100%;margin-top:22px;font-size:13px}.auth-switch:hover{color:#d8ccfa}.auth-security{color:#666;justify-content:center;align-items:center;gap:7px;margin-top:36px;font-size:11px;display:flex}.auth-loading{min-height:100vh;color:var(--muted);background:#111;place-content:center;place-items:center;gap:18px;display:grid}.crazy-loader{color:#ddd2ff;background:#2b1b4d;border:1px solid #7557ca;border-radius:16px;place-items:center;width:52px;height:52px;font:700 22px Space Grotesk,sans-serif;animation:1.5s ease-in-out infinite breathe;display:grid}@keyframes breathe{50%{transform:scale(1.04);box-shadow:0 0 34px #8b5cf680}}.app-shell{background:var(--page);grid-template-columns:260px minmax(0,1fr);width:100vw;height:100vh;display:grid}.app-shell.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}.sidebar{z-index:30;background:var(--sidebar);flex-direction:column;min-width:0;height:100vh;padding:11px 10px 9px;transition:transform .18s,opacity .15s;display:flex;position:relative;overflow:hidden}.sidebar-collapsed .sidebar{pointer-events:none;opacity:0;transform:translate(-100%)}.sidebar-top{align-items:center;gap:7px;min-height:42px;margin-bottom:8px;display:flex}.brand-button,.sidebar-toggle,.close-menu,.mobile-menu,.expand-sidebar,.icon-button{cursor:pointer;background:0 0}.brand-button{text-align:left;border-radius:9px;flex:1;align-items:center;gap:9px;min-width:0;padding:6px;display:flex}.brand-button:hover,.sidebar-toggle:hover,.mobile-menu:hover,.expand-sidebar:hover,.icon-button:hover,.close-menu:hover{background:var(--sidebar-hover)}.brand-button span,.welcome-mark,.ai-avatar{color:#fff;background:linear-gradient(145deg,#6d28d9,#9b72f1);place-items:center;font-family:Space Grotesk,sans-serif;font-weight:700;display:grid}.brand-button span{border-radius:9px;flex:0 0 29px;width:29px;height:29px;font-size:13px}.brand-button strong{text-overflow:ellipsis;font-family:Space Grotesk,sans-serif;font-size:14px;overflow:hidden}.sidebar-toggle,.close-menu,.mobile-menu,.expand-sidebar,.icon-button{color:#b6b6b6;border-radius:9px;flex:0 0 36px;place-items:center;width:36px;height:36px;display:grid}.close-menu{display:none}.new-chat{color:#ddd;cursor:pointer;text-align:left;background:0 0;border-radius:9px;align-items:center;gap:10px;width:100%;height:40px;padding:0 9px;font-size:13px;display:flex}.new-chat:hover{background:var(--sidebar-hover)}.new-chat span{flex:1;min-width:0}.new-chat kbd{color:#686868;font-family:inherit;font-size:10px}.history-label{color:#777;margin:24px 9px 8px;font-size:11px;font-weight:600}.history{scrollbar-width:thin;scrollbar-color:#333 transparent;flex:1;min-height:0;overflow:hidden auto}.history-item{color:#bdbdbd;cursor:pointer;text-align:left;background:0 0;border-radius:8px;align-items:center;gap:9px;width:100%;min-height:38px;padding:0 9px;font-size:13px;display:flex}.history-item svg{color:#767676;flex:none}.history-item span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.history-item:hover,.history-item.active{background:var(--sidebar-hover);color:#f0f0f0}.history-item.active svg{color:#aa8df2}.sidebar-footer{border-top:1px solid #ffffff0f;padding-top:8px;position:relative}.profile{cursor:pointer;text-align:left;background:0 0;border-radius:10px;align-items:center;gap:10px;width:100%;padding:7px;display:flex}.profile:hover{background:var(--sidebar-hover)}.avatar{color:#e6e9f2;background:#394155;border-radius:50%;flex:0 0 30px;place-items:center;width:30px;height:30px;font-size:10px;font-weight:700;display:grid}.profile-copy{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.profile-copy strong,.profile-copy small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.profile-copy strong{font-size:12px;font-weight:600}.profile-copy small{color:#717171;font-size:10px}.profile-more{color:#777}.profile-menu{border:1px solid var(--line);background:#292929;border-radius:12px;padding:7px;position:absolute;bottom:52px;left:0;right:0;overflow:hidden;box-shadow:0 16px 50px #00000070}.profile-menu>div{border-bottom:1px solid var(--line);flex-direction:column;gap:2px;padding:8px 9px 10px;display:flex}.profile-menu strong{font-size:12px}.profile-menu span{color:#888;text-overflow:ellipsis;font-size:10px;overflow:hidden}.profile-menu button{color:#ddd;cursor:pointer;text-align:left;background:0 0;border-radius:8px;align-items:center;gap:8px;width:100%;margin-top:6px;padding:9px;display:flex}.profile-menu button:hover{background:#353535}.chat-panel{grid-template-rows:56px minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);min-width:0;height:100vh;display:grid;position:relative;overflow:hidden}.topbar{z-index:10;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#212121ed;justify-content:space-between;align-items:center;gap:8px;width:100%;min-width:0;padding:7px 14px;display:flex;position:relative}.mobile-menu{display:none}.expand-sidebar{position:absolute;left:14px}.model-selector{cursor:pointer;background:0 0;border-radius:9px;align-items:center;gap:7px;padding:7px 9px;display:flex}.model-selector:hover{background:var(--surface)}.model-selector span{font-family:Space Grotesk,sans-serif;font-size:16px;font-weight:600}.model-selector small{color:#ac95e7;letter-spacing:.06em;background:#8b5cf617;border:1px solid #a78bfa30;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:700}.model-selector svg{color:#858585}.top-actions{align-items:center;gap:4px;display:flex;position:relative}.temporary{color:#aaa;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:9px;align-items:center;gap:7px;height:35px;padding:0 10px;font-size:11px;display:flex}.temporary:hover{background:var(--surface);color:#ddd}.temporary.enabled{color:#c4b5fd;background:#8b5cf61a;border-color:#a78bfa3d}.conversation{scroll-behavior:smooth;scrollbar-color:#4a4a4a transparent;width:100%;min-width:0;min-height:0;overflow:hidden auto}.conversation-inner{width:min(100%,780px);min-height:100%;margin:0 auto;padding:24px 22px 74px}.conversation-inner.empty{place-items:center;padding-bottom:24px;display:grid}.welcome{text-align:center;width:min(100%,680px);padding:30px 0 18px}.welcome-mark{border-radius:14px;width:46px;height:46px;margin:0 auto 18px;font-size:19px;box-shadow:0 10px 34px #6d28d947}.welcome h1{letter-spacing:-.05em;margin:0 0 38px;font-family:Space Grotesk,sans-serif;font-size:clamp(28px,3.2vw,34px);font-weight:500}.prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.prompt-grid button{border:1px solid var(--line);color:#b4b4b4;cursor:pointer;text-align:left;background:0 0;border-radius:15px;flex-direction:column;gap:3px;min-height:72px;padding:14px 42px 14px 15px;transition:background .12s,border-color .12s;display:flex;position:relative}.prompt-grid button:hover{background:#ffffff09;border-color:#ffffff2b}.prompt-grid strong{color:#e7e7e7;font-size:13px}.prompt-grid span{white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.prompt-grid svg{color:#6d6d6d;position:absolute;bottom:14px;right:14px}.message{padding:18px 0}.message-row{gap:14px;display:flex}.user-message .message-row{justify-content:flex-end}.message-avatar{border-radius:9px;flex:0 0 28px;width:28px;height:28px;font-size:11px}.message-body{min-width:0;max-width:100%}.user-message .message-body{max-width:78%}.message-bubble{white-space:pre-wrap}.user-bubble{background:var(--surface);color:#f1f1f1;border-radius:20px 20px 5px;padding:10px 15px;font-size:14px;line-height:1.52}.assistant-copy{color:#e5e5e5;max-width:710px;font-size:15px;line-height:1.72}.assistant-copy>:first-child{margin-top:0}.assistant-copy>:last-child{margin-bottom:0}.assistant-copy p,.assistant-copy ul,.assistant-copy ol,.assistant-copy blockquote,.assistant-copy pre{margin:0 0 16px}.assistant-copy h1,.assistant-copy h2,.assistant-copy h3{color:#f4f4f4;margin:27px 0 10px;font-family:Space Grotesk,sans-serif;line-height:1.25}.assistant-copy h1{font-size:22px}.assistant-copy h2{font-size:19px}.assistant-copy h3{font-size:16px}.assistant-copy ul,.assistant-copy ol{padding-left:24px}.assistant-copy li{margin:5px 0}.assistant-copy blockquote{color:#bdb3d3;border-left:3px solid #6d55a8;padding-left:14px}.assistant-copy a{color:#bda7f5;text-underline-offset:3px}.inline-code{color:#d8ccfa;background:#171717;border:1px solid #ffffff14;border-radius:5px;padding:2px 5px;font-family:SFMono-Regular,Consolas,monospace;font-size:.87em}.code-block{background:#111;border:1px solid #373737;border-radius:11px;margin:18px 0;overflow:hidden}.code-header{color:#858585;text-transform:uppercase;background:#1b1b1b;border-bottom:1px solid #303030;justify-content:space-between;align-items:center;height:37px;padding:0 12px;font-size:10px;display:flex}.code-header button{color:#aaa;cursor:pointer;text-transform:none;background:0 0;align-items:center;gap:5px;font-size:10px;display:flex}.code-block pre{margin:0;padding:15px;overflow-x:auto}.code-block code{color:#ddd;font-family:SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.6}.error-copy{color:#f2a2a2}.model-status{color:#aaa2ba;align-items:center;gap:10px;min-height:30px;font-size:13px;display:inline-flex}.model-status-spinner{border:2px solid #c4b5fd2e;border-top-color:#b9a5ed;border-radius:50%;width:15px;height:15px;animation:.8s linear infinite model-spin}@keyframes model-spin{to{transform:rotate(360deg)}}.streaming-cursor{vertical-align:-2px;background:#c4b5fd;width:7px;height:15px;margin-left:3px;animation:.9s step-end infinite blink;display:inline-block}@keyframes blink{50%{opacity:0}}.message-actions{opacity:0;gap:2px;margin-top:7px;transition:opacity .12s;display:flex}.assistant-message:hover .message-actions,.message-actions:focus-within{opacity:1}.message-actions button{color:#858585;cursor:pointer;background:0 0;border-radius:7px;place-items:center;width:29px;height:29px;display:grid}.message-actions button:hover{background:var(--surface);color:#ddd}.composer-wrap{z-index:8;background:var(--page);width:min(100% - 38px,780px);margin:0 auto;padding:0 0 12px;position:relative}.composer-wrap:before{content:"";z-index:-1;background:linear-gradient(to top, var(--page) 67%, transparent);pointer-events:none;height:115px;position:absolute;bottom:0;left:-28px;right:-28px}.composer{background:var(--surface);border:1px solid #ffffff21;border-radius:25px;padding:13px 13px 9px 16px;transition:border-color .15s,box-shadow .15s;box-shadow:0 10px 35px #0000002e}.composer:focus-within{border-color:#ffffff38;box-shadow:0 12px 44px #0000003b}.composer.generating{border-color:#8b5cf640}.composer textarea{resize:none;color:#f1f1f1;background:0 0;border:0;outline:none;width:100%;min-height:24px;max-height:180px;padding:0 2px;font-size:15px;line-height:24px;display:block;overflow-y:auto}.composer textarea::placeholder{color:#999}.composer-footer{justify-content:space-between;align-items:center;min-height:32px;margin-top:7px;display:flex}.composer-tools{align-items:center;gap:8px;display:flex}.composer-tools button{color:#a6a6a6;background:0 0;border-radius:50%;place-items:center;width:31px;height:31px;display:grid}.composer-tools button:not(:disabled):hover{background:#414141}.composer-tools button:disabled{opacity:.5}.raw-mode{color:#b8a2ee;background:#8b5cf614;border:1px solid #a78bfa30;border-radius:999px;align-items:center;gap:5px;height:27px;padding:0 9px;font-size:10px;font-weight:600;display:flex}.send-button,.stop-button{color:#222;cursor:pointer;background:#ececec;border-radius:50%;place-items:center;width:32px;height:32px;display:grid}.send-button:disabled{color:#888;cursor:default;background:#4a4a4a}.stop-button{color:#322354;background:#d8ccfa}.disclaimer{color:#737373;text-align:center;margin:8px 0 0;font-size:10px}.conversation-menu{z-index:20;border:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#252525f5;border-radius:12px;width:146px;padding:6px;position:absolute;top:42px;right:0;box-shadow:0 16px 45px #00000061}.conversation-menu button{color:#d0d0d0;cursor:pointer;text-align:left;background:0 0;border-radius:8px;align-items:center;gap:6px;width:100%;padding:9px 10px;font-size:12px;display:flex}.conversation-menu button:hover{color:#eee;background:#333}.conversation-menu button.danger{color:#e8a0a0}.conversation-menu button.danger:hover{color:var(--danger)}.toast{z-index:50;border:1px solid var(--line);color:#ddd;background:#111;border-radius:999px;align-items:center;gap:7px;padding:9px 14px;font-size:11px;animation:.16s ease-out toast-in;display:flex;position:fixed;top:70px;left:50%;transform:translate(-50%);box-shadow:0 12px 36px #00000057}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,-6px)}}.mobile-scrim{display:none}@media (max-width:900px){.auth-page{grid-template-columns:1fr}.auth-brand-panel{display:none}.auth-form-panel{padding:32px 24px}.auth-mobile-brand{display:flex}.app-shell,.app-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.sidebar,.sidebar-collapsed .sidebar{opacity:1;pointer-events:auto;width:min(86vw,280px);position:fixed;top:0;bottom:0;left:0;transform:translate(-105%)}.sidebar.mobile-open{transform:translate(0);box-shadow:24px 0 60px #00000073}.sidebar-toggle{display:none}.close-menu,.mobile-menu{display:grid}.expand-sidebar{display:none}.mobile-scrim{z-index:25;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#00000085;display:block;position:fixed;inset:0}.topbar{padding-inline:9px}.model-selector{min-width:0;margin-right:auto}.model-selector span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.model-selector small,.temporary span{display:none}.conversation-inner{padding-inline:16px}.composer-wrap{width:calc(100% - 20px);padding-bottom:7px}}@media (max-width:560px){.auth-card h2{font-size:28px}.prompt-grid{grid-template-columns:1fr}.prompt-grid button:nth-child(n+3){display:none}.welcome h1{margin-bottom:28px}.user-message .message-body{max-width:88%}.message{padding:14px 0}.assistant-copy{font-size:14px}.disclaimer{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
