:root{color-scheme:dark;--bg:#0b0e14;--panel:#111620;--panel2:#171d29;--text:#eef1f7;--muted:#8993a5;--line:#252b38;--accent:#7997ff;--accent2:#9d89ff;--font:-apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{height:100%;height:100dvh;margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,textarea:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}#app{display:flex;height:100dvh;width:100%;overflow:hidden}.sidebar{width:276px;flex-shrink:0;background:#10151e;border-right:1px solid #1d2431;display:flex;flex-direction:column;padding:24px 14px 12px}.side-head{display:flex;justify-content:space-between;align-items:center;padding:4px 10px 28px}.brand{font-weight:800;letter-spacing:.08em;font-size:14px;display:flex;align-items:center;gap:10px}.brand b{font-weight:400;color:#99a3b8}.brand-mark{width:31px;height:31px;border:1px solid #576caa;border-radius:11px;display:grid;place-items:center;font-size:24px;color:#a2adff;background:linear-gradient(135deg,#20294c,#302443)}.new-chat{height:46px;border:1px solid #374055;border-radius:12px;background:#1a2130;color:#f0f2fa;text-align:left;padding:0 14px;font-weight:600;display:flex;align-items:center;gap:10px}.new-chat>span:first-child{font-size:24px;font-weight:300;color:#a9b5ff}.kbd{margin-left:auto;font-size:11px;color:#778196}.sidebar-label{color:#6f7d93;font-size:10px;font-weight:750;letter-spacing:.13em;padding:27px 12px 12px;display:flex;justify-content:space-between}.chat-list{overflow:auto;flex:1;min-height:0}.chat-entry{display:flex;align-items:center;gap:3px;border-radius:10px;margin:2px 0;padding:2px 5px 2px 12px}.chat-entry.active{background:#222a3b}.chat-link{flex:1;min-width:0;border:0;background:none;text-align:left;color:#cbd3e0;padding:10px 2px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-entry.active .chat-link{color:white}.chat-delete{border:none;color:#8290a8;background:transparent;padding:7px;border-radius:8px;font-size:14px}.chat-delete:hover{color:#ff8f94;background:#3c2731}.side-bottom{border-top:1px solid #242b39;padding:8px 3px}.side-link{width:100%;border:0;background:none;color:#9aa6bc;display:flex;gap:15px;padding:12px 12px;text-align:left;border-radius:9px;font-size:13px}.side-link:first-letter{font-size:18px}.side-link:hover{background:#1f2634;color:white}.side-foot{font-size:10px;color:#637084;padding:14px 12px 4px;line-height:1.45}.close-mobile{display:none!important}.main{min-width:0;flex:1;display:flex;flex-direction:column;position:relative;background:radial-gradient(ellipse 48% 24% at 50% -10%,#1b2341 0,transparent 100%),var(--bg)}.topbar{height:76px;min-height:76px;border-bottom:1px solid #1c2230;display:flex;justify-content:space-between;align-items:center;padding:0 26px;gap:12px;position:relative;z-index:1;background:rgba(11,14,20,.65);backdrop-filter:blur(18px)}.top-left,.top-right{display:flex;align-items:center;gap:15px}.heading{display:flex;flex-direction:column;gap:4px}.heading-main{font-size:16px;font-weight:710;white-space:nowrap}.subname{font-weight:450;color:#8f9bb2}.model-sub{font-size:11px;color:#8893a6;display:flex;align-items:center;gap:7px}.status-dot{width:7px;height:7px;background:#f1b865;border-radius:50%;box-shadow:0 0 10px #daab6d88}.status-dot.online{background:#60cdaa;box-shadow:0 0 10px #60cdaa66}.status-dot.error{background:#fa777f}.icon-btn{width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#9ca9be;font-size:23px}.icon-btn:hover{background:#232b38;color:white}.balance{color:#a6b6df;border:1px solid #313a51;background:#1b2333;padding:10px 13px;border-radius:10px;font-size:12px}.chat-scroll{flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#353b50 transparent}.empty{max-width:720px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 22px 70px;text-align:center}.hero-icon{width:66px;height:66px;border-radius:21px;display:grid;place-items:center;font-size:37px;color:#bbbcff;background:linear-gradient(135deg,#2d3a71,#442956);box-shadow:0 10px 65px #6b5df733;margin-bottom:25px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.19em;color:#8294b9}.empty h1{font-size:clamp(26px,5vw,38px);margin:13px 0 9px;letter-spacing:-.035em;font-weight:670}.empty p{font-size:13px;color:#7f8b9c;line-height:1.8;margin:0 0 30px}.suggest-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:540px}.suggest{height:73px;display:flex;align-items:center;text-align:left;gap:13px;color:#c3cada;background:#151b26;border:1px solid #252d3c;border-radius:15px;padding:0 18px;font-size:13px;transition:.16s}.suggest:hover{background:#1d2635;border-color:#425171}.suggest:first-letter{color:#9cafff;font-size:25px}.messages{width:min(800px,100%);margin:0 auto;padding:32px 22px 50px;display:flex;flex-direction:column;gap:26px}.message{max-width:100%;display:flex;gap:13px;align-items:flex-start}.message.user{justify-content:flex-end}.bubble{font-size:15px;line-height:1.77;overflow-wrap:anywhere;word-break:break-word}.user .bubble{border:1px solid #3b435e;background:#252b3d;border-radius:19px 19px 6px 19px;padding:12px 17px;max-width:min(590px,94%);white-space:pre-wrap}.assistant .bubble{flex:1;min-width:0;padding:5px 0 0}.avatar{width:29px;height:29px;border-radius:10px;flex-shrink:0;display:grid;place-items:center;font-size:18px;background:#252a48;border:1px solid #424773;color:#b8bcff}.bubble p{margin:.1em 0 1em}.bubble p:last-child{margin-bottom:0}.bubble pre{background:#151a24;border:1px solid #30394a;border-radius:12px;padding:15px;white-space:pre;overflow:auto;font-size:12px;line-height:1.5}.bubble code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:#222938;border-radius:4px;padding:2px 4px}.bubble pre code{background:none;padding:0}.bubble blockquote{border-left:3px solid #6f85d4;margin:10px 0;padding-left:13px;color:#b8c4d4}.bubble strong{font-weight:750}.bubble h1,.bubble h2,.bubble h3{line-height:1.3;margin:1.05em 0 .4em}.bubble h1{font-size:21px}.bubble h2{font-size:18px}.bubble h3{font-size:16px}.bubble a{color:#a6baff;text-decoration:underline}.bubble ul,.bubble ol{padding-left:25px}.bubble li{margin:5px 0}.msg-actions{display:flex;gap:8px;margin-top:8px}.msg-action{border:0;background:transparent;color:#718199;padding:5px 7px;border-radius:7px;font-size:11px}.msg-action:hover{color:#c4d0e1;background:#202738}.thinking{display:flex;align-items:center;gap:8px;color:#8597b5;font-size:12px;margin-top:10px}.dots{display:inline-flex;gap:4px}.dots i{height:5px;width:5px;background:#9ab0ed;border-radius:50%;animation:pulse 1s infinite alternate}.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}@keyframes pulse{to{opacity:.2;transform:translateY(-3px)}}.compose-wrap{padding:0 24px max(12px,env(safe-area-inset-bottom));background:linear-gradient(0deg,var(--bg) 76%,transparent)}.compose{max-width:800px;margin:0 auto;border:1px solid #353d52;border-radius:19px;background:#1b202c;box-shadow:0 8px 42px #0004;padding:12px 13px 10px}.compose:focus-within{border-color:#6474a2}.compose textarea{resize:none;display:block;width:100%;min-height:35px;max-height:170px;border:0;outline:0!important;background:transparent;color:#f0f2f8;font-size:15px;line-height:1.5;padding:4px 3px}.compose textarea::placeholder{color:#778394}.compose-foot{display:flex;justify-content:space-between;align-items:center;margin-top:6px;gap:12px}.compose-tools{display:flex;align-items:center;gap:12px}.model-chip{border:1px solid #343d55;padding:7px 10px;border-radius:9px;font-size:11px;color:#b6c7fa}.mode{color:#748299;font-size:11px}.send-btn{display:grid;place-items:center;border:0;border-radius:12px;background:#b4c5ff;color:#121831;width:39px;height:39px;flex-shrink:0}.send-btn:hover{background:#ced9ff}.stop-btn{background:#e0a6a9}.stop-square{width:13px;height:13px;background:#191b24;border-radius:3px}.disclaimer{text-align:center;font-size:10px;color:#626c7b;margin:10px auto 2px;line-height:1.4}.error-banner{max-width:800px;margin:0 auto 10px;border:1px solid #744b51;border-radius:11px;background:#3a2229;color:#ffd5d6;padding:12px;display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:1.5}.error-banner button{background:none;border:0;color:#ffcbce}.veil,.modal-veil{position:fixed;inset:0;background:#05070dc9;z-index:10;backdrop-filter:blur(9px)}.modal-veil{display:flex;justify-content:center;align-items:center;padding:20px}.dialog{border:1px solid #35405b;background:#171d29;border-radius:23px;padding:30px;width:min(420px,100%);box-shadow:0 20px 80px #0008}.auth-logo{margin-bottom:20px;width:51px;height:51px;border-radius:15px;display:grid;place-items:center;font-size:29px;color:#d3ccff;background:linear-gradient(135deg,#35437c,#462b6b)}.dialog h2{font-size:24px;letter-spacing:-.025em;margin:11px 0}.dialog p{font-size:13px;color:#a1aec2;line-height:1.7;margin:0 0 23px}.dialog label:not(.switch){display:block;font-size:12px;color:#adb8ce;margin:14px 0 8px}.dialog input:not([type=checkbox]){width:100%;color:white;border:1px solid #35425c;background:#0f141f;border-radius:11px;padding:14px 12px;font-size:15px}.primary-btn{background:#abbbff;color:#131827;border:0;border-radius:11px;font-size:14px;font-weight:750;padding:14px 20px;width:100%;margin-top:19px}.dialog small{display:block;color:#728095;font-size:11px;line-height:1.6;margin-top:20px}.auth-error{background:#40242e;padding:10px;color:#ffc8d0;font-size:12px;border-radius:8px;margin-top:14px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.dialog-heading h2{margin:0}.setting{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #2b3445;padding:17px 0}.setting b{font-weight:640;font-size:13px}.setting small{margin-top:5px;color:#8594aa}.setting select{background:#202a3a;border:1px solid #40506c;border-radius:9px;color:white;padding:9px;font-size:13px}.setting-value{max-width:130px;text-align:right;color:#9baadd;font-size:11px;overflow-wrap:anywhere}.switch{width:48px;height:27px;display:inline-block;position:relative;flex-shrink:0}.switch input{opacity:0}.switch span{position:absolute;inset:0;background:#424a5b;border-radius:20px}.switch span:after{content:"";position:absolute;left:3px;top:3px;width:21px;height:21px;background:white;border-radius:50%;transition:.2s}.switch input:checked+span{background:#758cf1}.switch input:checked+span:after{transform:translateX(21px)}
@media(max-width:760px){.sidebar{position:fixed;z-index:12;inset:0 auto 0 0;height:100dvh;width:min(85vw,310px);transform:translateX(-100%);transition:transform .2s;padding-top:max(18px,env(safe-area-inset-top))}.sidebar.open{transform:translateX(0)}.veil.open{display:block!important}.close-mobile{display:grid!important}.topbar{height:66px;min-height:66px;padding:0 15px}.top-left{gap:7px}.top-right{gap:4px}.balance{padding:8px 9px}.subname{display:none}.heading-main{font-size:15px}.messages{padding:22px 14px 40px;gap:23px}.message{gap:10px}.bubble{font-size:14px}.compose-wrap{padding:0 10px max(6px,env(safe-area-inset-bottom))}.compose{border-radius:19px;padding:10px}.compose textarea{font-size:16px}.empty{padding:15px 15px 45px}.empty h1{font-size:27px}.empty p{margin-bottom:24px}.suggest-grid{gap:8px}.suggest{height:70px;padding:10px;gap:9px;font-size:11px}.mode{display:none}.disclaimer{font-size:9px;margin:7px 0 2px}.dialog{padding:25px 20px}.right-new{width:32px}}@media(max-height:630px){.empty{padding-top:25px;justify-content:flex-start}.hero-icon{margin-bottom:12px}.empty p{margin-bottom:12px}.suggest{height:52px}}