:root{--ink:#0b1224;--ink-2:#34425e;--muted:#55627d;--blue:#2358e6;--blue-2:#2a6bff;--purple:#6d3ae0;--cyan:#22c5ff;--danger:#c0213a;--font:"Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;--spring:cubic-bezier(.34, 1.56, .64, 1)}*{box-sizing:border-box}html,body{height:100%}body{font-family:var(--font);color:var(--ink);-webkit-font-smoothing:antialiased;background:#eef2fb;margin:0;overflow:hidden}button,input,textarea{font:inherit;color:inherit}a{color:#1a44b8}[hidden]{display:none!important}.bg{z-index:-1;background:radial-gradient(60vmax 60vmax at 6% 4%,#22c5ff8c,#0000 62%),radial-gradient(56vmax 56vmax at 96% 0,#7b3bf56b,#0000 64%),radial-gradient(60vmax 50vmax at 72% 102%,#2a6bff66,#0000 62%),radial-gradient(40vmax 40vmax at 0 100%,#7b3bf538,#0000 62%),#eef2fb;position:fixed;inset:0}.panel{background:#ffffff94;border:1px solid #ffffffd9;border-radius:28px;box-shadow:0 24px 60px #2358e629,inset 0 1px #fffffff2}.gbtn{isolation:isolate;-webkit-backdrop-filter:blur(14px)saturate(1.9);backdrop-filter:blur(14px)saturate(1.9);min-height:44px;color:var(--ink);cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;transition:transform .4s var(--spring), box-shadow .25s ease, filter .25s ease;background:linear-gradient(#fffc 0%,#deeaff66 100%);border:1px solid #ffffffeb;border-radius:999px;justify-content:center;align-items:center;gap:8px;padding:10px 20px;font-size:15px;font-weight:600;line-height:1.3;display:inline-flex;position:relative;overflow:hidden;box-shadow:inset 0 1.5px 1px #fff,inset 0 -2px 3px #2358e62e,inset 0 0 14px #ffffff8c,0 1px 2px #0f236e24,0 10px 22px -6px #2358e652}.gbtn:before{content:"";z-index:-1;border-radius:inherit;background:radial-gradient(130px 70px at var(--mx,30%) var(--my,0%), #fffffff2, #fff0 70%);opacity:.5;pointer-events:none;transition:opacity .3s;position:absolute;inset:0}.gbtn:after{content:"";z-index:-1;opacity:.55;pointer-events:none;background:linear-gradient(#fffc,#fff0);border-radius:999px 999px 70% 70%/999px 999px 45% 45%;height:44%;position:absolute;top:2px;left:9%;right:9%}.gbtn:hover{transform:translateY(-1.5px)}.gbtn:hover:before{opacity:.95}.gbtn:active{filter:saturate(1.15)brightness(.98);transition-duration:.12s;transform:scale(.93)}.gbtn:focus-visible{outline-offset:2px;outline:3px solid #2358e68c}.gbtn[disabled]{opacity:.55;cursor:not-allowed;filter:none;transform:none}.gbtn .ico{display:inline-flex}.gbtn.primary{color:#fff;background:linear-gradient(#ffffff38,#fff0 48%),linear-gradient(135deg,#2a63ee,#6d3ae0);border-color:#ffffff8c;box-shadow:inset 0 1.5px 1px #fffc,inset 0 -3px 7px #140a7852,inset 0 0 14px #ffffff1f,0 1px 2px #1e14784d,0 14px 28px -8px #5032dc99}.gbtn.primary:after{opacity:.4}.gbtn.danger{color:var(--danger)}.gbtn.icon{flex:none;width:44px;padding:0}.gbtn.send{width:50px;min-height:50px}.gbtn.xs{flex:none;width:36px;min-height:36px;padding:0;font-size:13px}.gbtn.block{width:100%}.gbtn.big{min-height:52px;font-size:16px}.gbtn.card{text-align:left;border-radius:22px;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px;padding:16px;font-size:15px;font-weight:500;line-height:1.6}.gbtn.card:after{border-radius:22px 22px 60% 60%/22px 22px 30% 30%;height:30%}.chip-ico{border-radius:12px;place-items:center;width:34px;height:34px;display:grid;box-shadow:inset 0 1px 1px #ffffffe6}.field{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.field>label{color:var(--ink-2);font-size:13.5px;font-weight:600}.field .hint{color:var(--muted);font-size:12.5px}.input-wrap{position:relative}.input{background:#ffffffb8;border:1px solid #2358e633;border-radius:16px;outline:none;width:100%;min-height:50px;padding:12px 16px;font-size:16px;transition:box-shadow .2s,border-color .2s,background .2s;box-shadow:inset 0 2px 4px #0f236e14,0 1px #ffffffe6}.input::placeholder{color:#66728c}.input:focus{border-color:var(--blue-2);background:#fffffff2;box-shadow:inset 0 2px 4px #0f236e0f,0 0 0 4px #2a6bff38}.input-wrap .toggle{position:absolute;top:6px;right:6px}.input-wrap .input.has-toggle{padding-right:56px}.form-error{min-height:20px;color:var(--danger);margin:0 0 12px;font-size:14px;font-weight:500}.form-ok{color:#0c7a4b}.muted{color:var(--muted)}.small{font-size:13px}.auth{height:100dvh;padding:20px;display:flex;overflow-y:auto}.auth-card{width:min(440px,100%);margin:auto;padding:30px 28px 24px}.auth-brand{text-align:center;flex-direction:column;align-items:center;margin-bottom:22px;display:flex}.logo-tile{background:#ffffffd9;border:1px solid #fff;border-radius:26px;place-items:center;width:84px;height:84px;display:grid;box-shadow:0 16px 36px #2a6bff3d,inset 0 -2px 6px #2358e61a}.logo-tile img{object-fit:contain;width:54px;height:54px}.auth-brand h1{letter-spacing:-.03em;margin:16px 0 4px;font-size:28px;font-weight:800}.auth-brand h1 span,.brand span.ai{color:var(--blue)}.auth-brand p{color:var(--muted);margin:0;line-height:1.7}.seg{background:#ffffff80;border-radius:999px;gap:4px;margin-bottom:20px;padding:4px;display:flex;box-shadow:inset 0 2px 5px #0f236e1f}.seg button{min-height:44px;color:var(--ink-2);cursor:pointer;transition:transform .4s var(--spring), background .25s, box-shadow .25s;background:0 0;border:0;border-radius:999px;flex:1;font-weight:600}.seg button[aria-selected=true]{color:var(--ink);background:linear-gradient(#fff,#e8f0fff2);box-shadow:0 6px 14px #2358e638,inset 0 1px #fff,inset 0 -2px 3px #2358e61f}.seg button:focus-visible{outline-offset:1px;outline:3px solid #2358e68c}.auth-foot{text-align:center;color:var(--muted);margin:18px 0 0;font-size:13px;line-height:1.7}.shell{grid-template-columns:310px minmax(0,1fr);gap:16px;height:100dvh;padding:16px;display:grid}.sidebar{flex-direction:column;min-height:0;padding:18px 14px 14px;display:flex}.sb-top{justify-content:space-between;align-items:center;padding:0 6px 16px;display:flex}.brand{letter-spacing:-.02em;align-items:center;gap:10px;font-size:19px;font-weight:800;display:flex}.brand img{object-fit:contain;width:30px;height:30px}.sidebar .new-chat{margin:0 4px 14px}.search{margin:0 4px 10px;position:relative}.search .ico{color:var(--muted);pointer-events:none;position:absolute;top:50%;left:14px;transform:translateY(-50%)}.search .input{border-radius:999px;min-height:44px;padding-left:42px;font-size:15px}.history{scrollbar-width:thin;flex:1;min-height:0;margin:0;padding:0 4px;overflow-y:auto}.history h3{letter-spacing:.04em;color:var(--muted);margin:14px 10px 6px;font-size:12px;font-weight:700}.history ul{margin:0;padding:0;list-style:none}.hi{border-radius:16px;align-items:center;transition:background .2s,box-shadow .2s;display:flex;position:relative}.hi:hover,.hi:focus-within{background:#ffffffa6}.hi.active{background:#fffffff2;box-shadow:0 6px 16px #2358e629,inset 0 1px #fff}.hi-main{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:16px;flex:1;min-width:0;min-height:46px;padding:10px 12px;font-size:15px}.hi.active .hi-main{color:var(--blue);font-weight:600}.hi-main:focus-visible{outline-offset:-2px;outline:3px solid #2358e68c}.hi-title{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.hi-actions{gap:4px;padding-right:6px;display:none}.hi:hover .hi-actions,.hi:focus-within .hi-actions{display:flex}.hi:hover .hi-main,.hi:focus-within .hi-main{padding-right:4px}.history .empty{color:var(--muted);margin:18px 10px;font-size:14px;line-height:1.7}.profile-btn{text-align:left;border-radius:22px;justify-content:flex-start;gap:12px;width:calc(100% - 8px);min-height:64px;margin:12px 4px 0;padding:10px 14px}.profile-btn .who{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.profile-btn .who b{text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.profile-btn .who small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:500;overflow:hidden}.avatar{color:#fff;background:linear-gradient(135deg,#22a6f5,#6d3ae0);border-radius:50%;flex:none;place-items:center;width:40px;height:40px;font-size:17px;font-weight:800;display:grid;box-shadow:inset 0 1.5px 1px #ffffffb3,inset 0 -3px 5px #140a7840,0 6px 14px #5032dc59}.avatar.lg{width:64px;height:64px;font-size:27px}.chat{flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.chat-head{align-items:center;gap:12px;padding:16px 20px;display:flex}.chat-head h2{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;margin:0;font-size:17px;font-weight:700;overflow:hidden}.scroller{scroll-behavior:smooth;flex:1;min-height:0;overflow-y:auto}.wrap{max-width:780px;margin:0 auto;padding:8px 22px 12px}.welcome{text-align:center;padding:5vh 0 8px}.welcome .logo-tile{border-radius:32px;width:104px;height:104px;margin:0 auto}.welcome .logo-tile img{width:66px;height:66px}.welcome h1{letter-spacing:-.03em;margin:26px 0 8px;font-size:clamp(26px,4.6vw,34px);font-weight:800;line-height:1.3}.welcome p{max-width:420px;color:var(--ink-2);margin:0 auto;line-height:1.75}.chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:28px;display:grid}.msg{align-items:flex-start;gap:12px;margin:20px 0;display:flex}.msg.user{justify-content:flex-end}.msg .bubble{color:#fff;white-space:pre-wrap;overflow-wrap:anywhere;background:linear-gradient(135deg,#2358e6,#6d3ae0);border-radius:24px 24px 8px;max-width:min(82%,560px);padding:13px 20px;font-size:16px;font-weight:500;line-height:1.7;box-shadow:0 10px 24px #5b2bd042,inset 0 1px 1px #ffffff59}.bot-ava{background:#fff;border-radius:13px;flex:none;place-items:center;width:38px;height:38px;display:grid;box-shadow:0 6px 16px #2a6bff2e}.bot-ava img{object-fit:contain;width:25px;height:25px}.bot-body{flex:1;min-width:0}.bot-card{overflow-wrap:anywhere;background:#ffffffe0;border:1px solid #fff;border-radius:8px 24px 24px;max-width:100%;padding:15px 20px;font-size:16px;line-height:1.8;display:inline-block;box-shadow:0 10px 28px #2a6bff1a}.bot-card>:first-child{margin-top:0}.bot-card>:last-child{margin-bottom:0}.bot-card p{margin:0 0 10px}.bot-card h1,.bot-card h2,.bot-card h3{letter-spacing:-.01em;margin:16px 0 8px;line-height:1.35}.bot-card h1{font-size:21px}.bot-card h2{font-size:18px}.bot-card h3{font-size:16.5px}.bot-card ul,.bot-card ol{margin:0 0 10px;padding-left:22px}.bot-card li{margin:3px 0}.bot-card code{background:#2358e61a;border-radius:6px;padding:2px 6px;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.88em}.bot-card pre{color:#e6edf7;background:#0f172a;border-radius:16px;margin:0 0 10px;padding:14px 16px;position:relative;overflow-x:auto}.bot-card pre code{color:inherit;background:0 0;padding:0;font-size:13.5px;line-height:1.65}.copy-btn{color:#d6e0f5;cursor:pointer;background:#ffffff1f;border:1px solid #fff3;border-radius:10px;min-height:32px;padding:3px 12px;font-size:12.5px;position:absolute;top:8px;right:8px}.copy-btn:hover{background:#ffffff38}.bot-actions{gap:8px;margin-top:8px;display:flex}.bot-actions .gbtn{min-height:36px;padding:6px 14px;font-size:13px}.msg.error .bot-card{color:var(--danger);background:#fff0f2eb}.typing{align-items:center;gap:6px;padding:6px 0;display:inline-flex}.typing i{background:linear-gradient(135deg,#22a6f5,#6d3ae0);border-radius:50%;width:9px;height:9px;animation:1.2s ease-in-out infinite bounce}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,80%,to{opacity:.45;transform:translateY(0)}40%{opacity:1;transform:translateY(-5px)}}.composer-wrap{padding:8px 22px 16px}.composer{background:#ffffffe6;border:1px solid #fff;border-radius:30px;align-items:flex-end;gap:10px;max-width:780px;margin:0 auto;padding:7px 7px 7px 22px;transition:box-shadow .2s;display:flex;box-shadow:0 14px 34px #2a6bff29,inset 0 1px #fff}.composer:focus-within{box-shadow:0 14px 34px #2a6bff29,0 0 0 4px #2a6bff38}.composer textarea{resize:none;background:0 0;border:0;outline:0;flex:1;min-width:0;max-height:180px;padding:12px 0;font-size:16px;line-height:1.55}.composer textarea::placeholder{color:#66728c}.note{text-align:center;max-width:780px;color:var(--muted);margin:10px auto 0;font-size:12.5px;line-height:1.6}dialog.dlg{width:min(480px,100vw - 24px);max-height:calc(100dvh - 24px);color:var(--ink);background:#f7fafff0;border:1px solid #fff;border-radius:28px;padding:0;overflow:hidden;box-shadow:0 30px 80px #141e5a59,inset 0 1px #fff}dialog.dlg[open]{animation:pop .45s var(--spring);flex-direction:column;display:flex}dialog.dlg::backdrop{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0e183c61}@keyframes pop{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}.dlg-body{padding:24px;overflow-y:auto}.dlg-head{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.dlg-head h2{margin:0;font-size:20px;font-weight:800}.dlg-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:8px;display:flex}.dlg p{line-height:1.75}.who-card{align-items:center;gap:16px;margin-bottom:18px;display:flex}.who-card b{font-size:19px;display:block}.who-card span{color:var(--muted);overflow-wrap:anywhere;font-size:14px}.usage{background:#fffc;border-radius:20px;margin-bottom:20px;padding:14px 16px;box-shadow:inset 0 2px 5px #0f236e14}.usage-top{justify-content:space-between;margin-bottom:8px;font-size:14px;font-weight:600;display:flex}.bar{background:#2358e61f;border-radius:999px;height:12px;overflow:hidden;box-shadow:inset 0 1px 3px #0f236e2e}.bar>i{border-radius:inherit;height:100%;transition:width .6s var(--spring);background:linear-gradient(90deg,#22a6f5,#6d3ae0);display:block;box-shadow:inset 0 1px 1px #fff9}.section{border-top:1px solid #2358e624;margin-top:18px;padding-top:18px}.section h3{margin:0 0 12px;font-size:15.5px}.row{align-items:flex-start;gap:10px;display:flex}.row .field{flex:1;margin-bottom:0}.only-mobile,.scrim{display:none}@media (width<=880px){.only-mobile{display:inline-flex}.shell{grid-template-columns:minmax(0,1fr);gap:0;padding:8px}.sidebar{z-index:30;width:min(86vw,330px);transition:transform .5s var(--spring);background:#fafcfff0;position:fixed;top:8px;bottom:8px;left:8px;transform:translate(calc(-100% - 20px))}.shell.sb-open .sidebar{transform:none}.scrim{z-index:20;opacity:0;pointer-events:none;background:#0e183c59;transition:opacity .3s;display:block;position:fixed;inset:0}.shell.sb-open .scrim{opacity:1;pointer-events:auto}.panel{border-radius:24px}.chat-head{padding:12px 14px}.wrap{padding:4px 14px 10px}.composer-wrap{padding:6px 12px calc(10px + env(safe-area-inset-bottom))}.chips{grid-template-columns:minmax(0,1fr)}.gbtn.card{flex-direction:row;align-items:center}.msg .bubble{max-width:88%}.auth-card{padding:24px 20px 20px}}@media (hover:none){.hi-actions{display:flex}}.shell.busy .history,.shell.busy .new-chat{pointer-events:none;opacity:.6}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
