.chat-root{display:grid;overflow:hidden;font-size:14px;background:var(--bg)}.chat-root .side{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line)}.chat-root .side-top{display:flex;align-items:center;gap:10px;padding:16px 16px 14px}.chat-root .newchat{display:flex;align-items:center;justify-content:center;gap:8px;height:36px;margin:0 12px 12px;border:1px solid var(--line-2);border-radius:10px;color:var(--fg);font-weight:550;transition:border-color .15s,background-color .15s}.chat-root .newchat:hover{border-color:var(--acc-line);background:var(--acc-dim)}.chat-root .search{display:flex;align-items:center;gap:8px;height:32px;margin:0 12px 10px;padding:0 2px;border-bottom:1px solid var(--line);color:var(--fg-3);font-size:var(--text-small);transition:border-color .15s}.chat-root .search:focus-within{border-bottom-color:var(--acc-line)}.chat-root .search input{flex:1 1;min-width:0;border:0;background:transparent;outline:none;color:var(--fg)}.chat-root .search input::placeholder{color:var(--fg-3)}.chat-root .hist{flex:1 1;min-height:0;overflow:auto;padding:2px 10px 8px;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}.chat-root .hist h2{margin:14px 6px 6px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--fg-3)}.chat-root .hist-item{display:flex;align-items:center}.chat-root .hist-item>button:first-child{flex:1 1;min-width:0;padding:7px 9px;border-radius:8px;text-align:left;color:var(--fg-2);font-size:var(--text-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background-color .12s,color .12s}.chat-root .hist-item>button:first-child:hover{background:rgba(255,255,255,.04)}.chat-root .hist-item.on>button:first-child{background:var(--panel-2)}.chat-root .hist-item .del{flex:none;width:26px;height:26px;border-radius:6px;color:var(--fg-3);opacity:0;font-size:14px}.chat-root .hist-item .del:focus-visible,.chat-root .hist-item:hover .del{opacity:1}.chat-root .hist-item .del:hover{background:rgba(255,255,255,.05)}.chat-root .hist-empty{padding:8px;font-size:var(--text-small);color:var(--fg-3)}.chat-root .side-foot{padding:13px 14px 14px;border-top:1px solid var(--line)}.chat-root .zdr-note{display:flex;gap:8px;align-items:flex-start;line-height:1.5;color:var(--fg-3)}.chat-root .zdr-note i{flex:none;width:6px;height:6px;margin-top:6px;border-radius:50%;background:var(--acc);box-shadow:0 0 8px var(--acc-glow)}.chat-root .zdr-note b{color:var(--fg-2);font-weight:600}.chat-root .side-links{display:flex;flex-wrap:wrap;gap:2px 12px;margin:10px 0 0;font-size:var(--text-small);color:var(--fg-3)}.chat-root .side-links a:hover{color:var(--fg)}.chat-root .keyrow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;font-size:var(--text-small);color:var(--fg-3)}.chat-root .keyrow span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-root .keyrow button{color:var(--acc);font-weight:500;white-space:nowrap}.chat-root .main{display:grid;grid-template-rows:52px minmax(0,1fr) auto;min-width:0;min-height:0}.chat-root .head{display:flex;align-items:center;gap:8px;padding:0 22px;border-bottom:1px solid var(--line)}.chat-root .head h1{margin-right:6px;font-size:var(--text-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-root .chip{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 10px;border-radius:999px;background:var(--panel-2);font:var(--text-caption) var(--mono);color:var(--fg-2);white-space:nowrap}.chat-root .chip.acc{background:var(--acc-dim);color:var(--acc)}.chat-root .chip i{width:5px;height:5px;border-radius:50%;background:var(--acc)}.chat-root .head-r{display:flex;gap:6px;margin-left:auto}.chat-root .gbtn{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;font-size:var(--text-small);color:var(--fg-3);white-space:nowrap;transition:color .12s,background-color .12s}.chat-root .gbtn:hover{color:var(--fg);background:var(--panel-2)}.chat-root .thread{min-height:0;overflow:auto;padding:30px 24px 12px;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}.chat-root .thread-in{display:flex;flex-direction:column;gap:24px;max-width:780px;margin:0 auto}.chat-root .empty{display:grid;grid-gap:12px;gap:12px;justify-items:center;text-align:center;padding:13vh 0 0;color:var(--fg-2)}.chat-root .empty h2{font-size:21px;font-weight:650;letter-spacing:-.02em;color:var(--fg)}.chat-root .empty p{max-width:52ch}.chat-root .empty p code{padding:1px 6px;border:1px solid var(--line);border-radius:5px;background:var(--panel);font-size:var(--text-caption);color:var(--fg)}.chat-root .empty .sugs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:6px}.chat-root .empty .sugs button{max-width:320px;padding:8px 13px;border-radius:999px;font-size:var(--text-small);color:var(--fg-2);transition:border-color .15s,color .15s}.chat-root .empty .sugs button:hover{border-color:var(--acc-line);color:var(--fg)}.chat-root .empty .err{max-width:60ch}.chat-root .msg{display:grid;grid-gap:6px;gap:6px}.chat-root .msg.me{justify-items:end}.chat-root .msg.me .bub{max-width:80%;padding:10px 15px;border-radius:16px 16px 4px 16px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-root .body{font-size:14.5px;line-height:1.7;min-width:0}.chat-root .body p{margin:0;overflow-wrap:anywhere}.chat-root .body .codeblk+p,.chat-root .body p+.codeblk,.chat-root .body p+.mdtable,.chat-root .body p+blockquote,.chat-root .body p+hr,.chat-root .body p+ol,.chat-root .body p+p,.chat-root .body p+ul{margin-top:10px}.chat-root .body .md-h{margin:16px 0 6px;font-weight:650;line-height:1.35;color:var(--fg)}.chat-root .body .md-h:first-child{margin-top:0}.chat-root .body h3.md-h{font-size:16px;letter-spacing:-.01em}.chat-root .body h4.md-h{font-size:14.5px}.chat-root .body h5.md-h,.chat-root .body h6.md-h{font-size:var(--text-small);color:var(--fg-2)}.chat-root .body ol,.chat-root .body ul{margin:8px 0;padding-left:22px;display:grid;grid-gap:4px;gap:4px}.chat-root .body ul{list-style:disc}.chat-root .body ol{list-style:decimal}.chat-root .body li::marker{color:var(--fg-3)}.chat-root .body li>.mdsub{margin:4px 0 0}.chat-root .body li.task{display:flex;gap:8px;align-items:baseline;list-style:none;margin-left:-22px}.chat-root .body li.task input{flex:none;width:13px;height:13px;margin-top:3px;accent-color:var(--acc)}.chat-root .body li.task.done{color:var(--fg-3);text-decoration:line-through;-webkit-text-decoration-color:var(--line-3);text-decoration-color:var(--line-3)}.chat-root .body blockquote{margin:10px 0;padding:9px 14px;border-left:2px solid var(--acc);border-radius:0 10px 10px 0;background:var(--acc-dim);color:var(--fg-2)}.chat-root .body blockquote p{margin:0}.chat-root .body .mdtable{margin:10px 0;border:1px solid var(--line);border-radius:10px;overflow-x:auto}.chat-root .body table{width:100%;border-collapse:collapse;font-size:var(--text-small)}.chat-root .body td,.chat-root .body th{padding:8px 12px;border-bottom:1px solid var(--line);text-align:left}.chat-root .body th{font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-3);background:rgba(255,255,255,.02)}.chat-root .body tr:last-child td{border-bottom:0}.chat-root .body hr{margin:14px 0;border:0;border-top:1px solid var(--line-2)}.chat-root .body a{color:var(--acc);text-decoration:underline;-webkit-text-decoration-color:rgba(255,42,61,.4);text-decoration-color:rgba(255,42,61,.4);text-underline-offset:3px}.chat-root .body a:hover{color:var(--acc-2);-webkit-text-decoration-color:var(--acc-2);text-decoration-color:var(--acc-2)}.chat-root .body code{padding:1px 6px;border:1px solid var(--line);border-radius:5px;background:var(--panel);font-size:.92em;color:var(--fg)}.chat-root .body .codeblk{margin:10px 0}.chat-root .body .codeblk code{padding:0;border:0;background:none;font-size:var(--text-small)}.chat-root .body .err{padding:10px 14px;border:1px solid rgba(255,42,61,.4);border-radius:10px;background:var(--acc-dim);color:var(--fg);font-size:var(--text-small)}.chat-root .demolink{justify-self:center;margin-top:10px;padding:7px 14px;border:1px dashed var(--line-2);border-radius:999px;font-size:var(--text-small);color:var(--fg-2);transition:color .15s,border-color .15s}.chat-root .demolink:hover{color:var(--acc);border-color:var(--acc-line)}.chat-root .caret{display:inline-block;width:8px;height:1em;margin-left:2px;vertical-align:-2px;background:var(--acc);animation:blink 1s steps(1) infinite}@keyframes blink{50%{opacity:0}}.chat-root .meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:2px;font:var(--text-caption) var(--mono)}.chat-root .meta .ok{color:var(--acc)}.chat-root .acts{display:flex;gap:2px;margin-left:auto;opacity:.55;transition:opacity .15s}.chat-root .acts:focus-within,.chat-root .msg:hover .acts{opacity:1}.chat-root .acts button{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;color:var(--fg-3);transition:background-color .12s,color .12s}.chat-root .acts button:hover{background:var(--panel-2);color:var(--fg)}.chat-root .thinking{display:inline-flex;gap:5px;padding:12px 2px}.chat-root .thinking i{width:6px;height:6px;border-radius:50%;background:var(--acc);opacity:.3;animation:th 1.15s ease-in-out infinite}.chat-root .thinking i:nth-child(2){animation-delay:.15s}.chat-root .thinking i:nth-child(3){animation-delay:.3s}@keyframes th{0%,to{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}.chat-root .mdimg{position:relative;display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel);cursor:zoom-in;transition:border-color .15s}.chat-root .mdimg:hover{border-color:var(--line-3)}.chat-root .mdimg img{display:block;width:100%;max-height:380px;object-fit:cover;opacity:0;transition:opacity .45s ease}.chat-root .mdimg img.on{opacity:1}.chat-root .mdimg-skel{display:block;aspect-ratio:16/10;width:100%;background:linear-gradient(100deg,var(--panel-2) 40%,rgba(255,255,255,.05) 50%,var(--panel-2) 60%);background-size:200% 100%;animation:skel 1.2s linear infinite}@keyframes skel{to{background-position:-200% 0}}.chat-root .mdimg-err{display:grid;place-items:center;aspect-ratio:16/10;padding:0 14px;font-size:var(--text-small);color:var(--fg-3);text-align:center;overflow-wrap:anywhere}.chat-root .mdimg-err b{color:var(--fg-2);font-weight:500}.chat-root .mdgal{display:grid;grid-gap:8px;gap:8px;margin:10px 0}.chat-root .mdgal .mdimg img{max-height:230px}.chat-root .mdgal:has(>:nth-child(2)){grid-template-columns:repeat(2,1fr)}.chat-root .mdgal:has(>:nth-child(3)){grid-template-columns:repeat(3,1fr)}.chat-root .body p .mdimg{display:inline-block;width:auto;max-width:100%;vertical-align:middle}.chat-root .body p .mdimg img{max-height:210px}.chat-root .lightbox{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:4vh 4vw;background:rgba(0,0,0,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:zoom-out;animation:lbin .2s ease}.chat-root .lightbox img{max-width:100%;max-height:88vh;border:1px solid var(--line-2);border-radius:12px;box-shadow:0 40px 120px rgba(0,0,0,.7);animation:lbzoom .26s cubic-bezier(.2,.7,.2,1)}.chat-root .lb-close{position:fixed;top:18px;right:22px;width:36px;height:36px;border:1px solid var(--line-2);border-radius:999px;background:var(--bg);color:var(--fg-2);font-size:var(--text-small)}.chat-root .lb-close:hover{color:var(--fg);border-color:var(--line-3)}@keyframes lbin{0%{opacity:0}}@keyframes lbzoom{0%{transform:scale(.94);opacity:0}}.chat-root .mdvideo{margin:10px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--bg)}.chat-root .mdvideo video{display:block;width:100%;max-height:400px}.chat-root .composer{padding:10px 24px calc(16px + env(safe-area-inset-bottom))}.chat-root .box{max-width:780px;margin:0 auto;border:1px solid var(--line-2);border-radius:14px;box-shadow:0 12px 34px -22px rgba(0,0,0,.85);transition:border-color .15s}.chat-root .box:focus-within{border-color:var(--acc-line)}.chat-root .box textarea{display:block;width:100%;min-height:56px;max-height:220px;padding:14px 16px 2px;border:0;background:transparent;font:14.5px/1.5 var(--sans);resize:vertical;outline:none}.chat-root .box textarea::placeholder{color:var(--fg-3)}.chat-root .tools{display:flex;align-items:center;gap:4px;padding:4px 8px 8px 10px}.chat-root .sel{position:relative;display:inline-flex;align-items:center}.chat-root .sel select{height:28px;padding:0 24px 0 10px;border:0;border-radius:8px;background:transparent;font:var(--text-small) var(--mono);color:var(--fg-2);cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;transition:color .12s,background-color .12s}.chat-root .sel select:hover{color:var(--fg);background:var(--panel-2)}.chat-root .sel:after{content:"▾";position:absolute;right:9px;font-size:var(--text-caption);color:var(--fg-3);pointer-events:none}.chat-root .send{display:grid;place-items:center;width:32px;height:32px;margin-left:auto;border-radius:50%;transition:background-color .12s,transform .12s}.chat-root .send:active{transform:scale(.96)}.chat-root .send:disabled{opacity:.45;cursor:default}.chat-root .send.stop{background:var(--panel-2);color:var(--fg)}.chat-root .hint{display:flex;justify-content:center;max-width:780px;margin:8px auto 0}.chat-root .rail{display:none;min-height:0;overflow:auto;border-left:1px solid var(--line);scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}@media (min-width:1281px){.chat-root.rail-open .rail{display:block;animation:railin .3s cubic-bezier(.2,.7,.2,1)}}@keyframes railin{0%{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}.chat-root .gbtn.details[aria-pressed=true]{color:var(--fg);background:var(--panel-2)}.chat-root .sec{padding:16px 18px 15px;border-bottom:1px solid var(--line)}.chat-root .sec h2{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-3)}.chat-root .sec h2 a{font:var(--text-small) var(--sans);letter-spacing:0;text-transform:none;color:var(--acc)}.chat-root .kv{display:grid;grid-gap:7px;gap:7px}.chat-root .kv div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:var(--text-small)}.chat-root .kv dt{color:var(--fg-3)}.chat-root .kv dd{font:var(--text-small) var(--mono);color:var(--fg);text-align:right;overflow-wrap:anywhere}.chat-root .kv dd.ok{color:var(--acc)}.chat-root .kv dd.dim{color:var(--fg-3)}.chat-root .model-name{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}.chat-root .model-name b{font:600 var(--text-small) var(--mono)}.chat-root .model-name span{color:var(--fg-3)}.chat-root .sw{position:relative;display:inline-block;width:28px;height:16px;border-radius:999px;background:var(--acc);vertical-align:middle}.chat-root .sw:after{content:"";position:absolute;right:2px;top:2px;width:12px;height:12px;border-radius:50%;background:var(--acc-ink)}.chat-root .rail-note{padding:14px 18px;line-height:1.55;color:var(--fg-3)}.chat-root .rail-note a{color:var(--fg-2);text-decoration:underline;-webkit-text-decoration-color:var(--line-3);text-decoration-color:var(--line-3);text-underline-offset:3px}.chat-root .rail-note a:hover{color:var(--acc)}.chat-root .connect-wrap{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.6)}.chat-root .connect{width:min(100%,440px);padding:22px;border:1px solid var(--line-2);border-radius:16px;background:var(--panel);box-shadow:0 30px 80px rgba(0,0,0,.6)}.chat-root .connect h2{font-size:18px;font-weight:650;letter-spacing:-.02em}.chat-root .connect p{margin-top:6px;color:var(--fg-2);font-size:var(--text-small)}.chat-root .connect input{width:100%;height:40px;margin-top:14px;padding:0 12px;border:1px solid var(--line-2);border-radius:10px;background:var(--bg);font:var(--text-small) var(--mono);outline:none}.chat-root .connect input:focus{border-color:var(--acc-line)}.chat-root .connect .row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px}.chat-root .connect .row a{color:var(--fg-3);font-size:var(--text-small)}.chat-root .connect .row a:hover{color:var(--fg)}.chat-root .connect .warn{margin-top:10px;font-size:var(--text-small);color:var(--acc)}@media (max-width:1280px){.chat-root .head-r .gbtn.details,.chat-root .rail{display:none}}@media (max-width:900px){.chat-root .side{display:none}.chat-root .menu{display:block}.chat-root .head{padding:0 14px;gap:8px}.chat-root .head .chip.model,.chat-root .head-r .gbtn.export{display:none}.chat-root .thread{padding:22px 14px 8px}.chat-root .composer{padding-inline:12px}.chat-root .msg.me .bub{max-width:92%}}@media (max-width:560px){.chat-root .head .chip.policy,.chat-root .tools .sel.effort,.chat-root .tools .sel.policy{display:none}}.chat-root .think{margin:0 0 10px;border:1px dashed var(--line-2);border-radius:12px;background:var(--bg);overflow:hidden}.chat-root .think.live{border-color:var(--acc-line);background:rgba(255,42,61,.04)}.chat-root .think-head{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:0;background:none;font-size:var(--text-small);color:var(--fg-3);text-align:left;cursor:pointer}.chat-root .think-head:hover{color:var(--fg-2)}.chat-root .think-ico{color:var(--acc);font-size:var(--text-caption)}.chat-root .think.live .think-ico{animation:breathe 2s ease-in-out infinite}.chat-root .think-label{font-weight:550}.chat-root .think.live .think-label{color:var(--fg-2)}.chat-root .think-dots{display:inline-flex;gap:4px}.chat-root .think-dots i{width:4px;height:4px;border-radius:50%;background:var(--acc);opacity:.3;animation:th 1.15s ease-in-out infinite}.chat-root .think-dots i:nth-child(2){animation-delay:.15s}.chat-root .think-dots i:nth-child(3){animation-delay:.3s}.chat-root .think-chev{margin-left:auto;color:var(--fg-3);transition:transform .2s}.chat-root .think.open .think-chev{transform:rotate(180deg)}.chat-root .think-body{max-height:280px;overflow:auto;padding:2px 14px 12px;border-top:1px dashed var(--line-2);font-size:var(--text-small);line-height:1.65;color:var(--fg-3);scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}.chat-root .think.live .think-body{border-top-color:rgba(255,42,61,.3)}.chat-root .think-body p{margin:6px 0}.chat-root .msg{animation:msgin .38s cubic-bezier(.2,.7,.2,1) both}@keyframes msgin{0%{opacity:0;transform:translateY(10px)}}.chat-root .body>*{animation:blk .45s cubic-bezier(.2,.7,.2,1) both}@keyframes blk{0%{opacity:0;transform:translateY(7px)}}.chat-root .body .md-h{display:flex;align-items:flex-start;gap:9px}.chat-root .body .md-h:before{content:"";flex:none;width:12px;height:2px;margin-top:.62em;border-radius:2px;background:var(--acc);box-shadow:0 0 8px var(--acc-glow);animation:dash .55s cubic-bezier(.6,.05,.2,1) both;transform-origin:left center}@keyframes dash{0%{transform:scaleX(0);opacity:0}}.chat-root .body li{animation:liin .32s cubic-bezier(.2,.7,.2,1) both}.chat-root .body li:nth-child(2){animation-delay:.04s}.chat-root .body li:nth-child(3){animation-delay:.08s}.chat-root .body li:nth-child(4){animation-delay:.12s}.chat-root .body li:nth-child(5){animation-delay:.16s}.chat-root .body li:nth-child(6),.chat-root .body li:nth-child(n+7){animation-delay:.2s}@keyframes liin{0%{opacity:0;transform:translateX(-6px)}}.chat-root .body li.task input{animation:pop .34s cubic-bezier(.2,.9,.3,1.4) both}@keyframes pop{0%{transform:scale(0)}}.chat-root .body .mdtable tbody tr{animation:liin .3s both}.chat-root .body .mdtable tbody tr:nth-child(2){animation-delay:.05s}.chat-root .body .mdtable tbody tr:nth-child(3){animation-delay:.1s}.chat-root .body .mdtable tbody tr:nth-child(4),.chat-root .body .mdtable tbody tr:nth-child(n+5){animation-delay:.15s}.chat-root .body blockquote{animation:quotein .42s cubic-bezier(.2,.7,.2,1) both}@keyframes quotein{0%{opacity:0;transform:translateX(-10px)}}.chat-root .body hr{animation:wipe .5s cubic-bezier(.6,.05,.2,1) both;transform-origin:left center}@keyframes wipe{0%{transform:scaleX(0);opacity:0}}.chat-root .body .caret{box-shadow:0 0 10px var(--acc-glow);animation:blink 1s steps(1) infinite,breathe 2.2s ease-in-out infinite}.chat-root .empty>*{animation:blk .5s cubic-bezier(.2,.7,.2,1) both}.chat-root .empty>:nth-child(2){animation-delay:.07s}.chat-root .empty>:nth-child(3){animation-delay:.14s}.chat-root .empty>:nth-child(4){animation-delay:.21s}.chat-root .empty>:nth-child(5){animation-delay:.28s}.chat-root .empty>:nth-child(6){animation-delay:.35s}.chat-root .demolink{animation:breatheGlow 3.4s ease-in-out 1s infinite}@keyframes breatheGlow{0%,to{border-color:var(--line-2)}50%{border-color:var(--acc-line);box-shadow:0 0 18px -8px var(--acc-glow)}}.chat-root .chat-history-toggle{display:inline-flex}.chat-root .chat-new-shortcut{display:none}.chat-root .chat-history-drawer{position:fixed;inset:16px auto 16px 232px;width:min(330px,calc(100vw - 32px));height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);max-width:none;padding:0;margin:0;border:1px solid var(--line-2);border-radius:10px;background:var(--bg);color:var(--fg);box-shadow:0 16px 60px color-mix(in srgb,var(--bg) 75%,transparent);overflow:hidden}.chat-root .chat-history-drawer[open]{display:flex;flex-direction:column}.chat-root .chat-history-drawer::-webkit-backdrop{background:color-mix(in srgb,var(--bg) 65%,transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.chat-root .chat-history-drawer::backdrop{background:color-mix(in srgb,var(--bg) 65%,transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.chat-root .chat-history-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:70px;padding:0 18px;flex-shrink:0}.chat-root .chat-history-drawer-heading h2{display:flex;align-items:center;gap:9px;color:var(--fg-2);font-size:var(--text-small);font-weight:550}.chat-root .chat-history-drawer-heading>button{display:grid;place-items:center;width:27px;height:29px;border-radius:5px;color:var(--fg-3)}.chat-root .chat-history-drawer-heading>button:hover{color:var(--fg);background:var(--panel-2)}.chat-root .chat-history-drawer .hist{padding-bottom:16px}.chat-root .connect-wrap{z-index:90}.chat-root .side{background:var(--bg)}.chat-root .side-top{justify-content:space-between;flex-shrink:0;height:82px;padding:0 20px;color:var(--fg-2)}.chat-root .side-top>div{display:flex;align-items:center;gap:9px;min-width:0}.chat-root .side-top svg{color:var(--fg-3)}.chat-root .side-top h2{font-size:var(--text-small);font-weight:550;letter-spacing:-.015em}.chat-root .side-top .chat-history-actions{gap:6px}.chat-root .chat-collapse-history{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;color:var(--fg-3)}.chat-root .chat-collapse-history:hover,.chat-root .chat-history-toggle[aria-expanded=true]{color:var(--fg);background:var(--panel-2)}.chat-root .chat-history-toggle,.chat-root .chat-new-shortcut{flex-shrink:0}.chat-root .chat-model-notice{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;max-width:820px;margin:10px auto 0;color:var(--fg-2);font-size:var(--text-small)}.chat-root .chat-model-notice a,.chat-root .chat-model-notice button{color:var(--acc)}.chat-root .chat-model-notice button{margin-left:7px}.chat-root .chat-rail-controls select:disabled,.chat-root .sel select:disabled{color:var(--fg-3);cursor:default}.chat-root .chat-count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:21px;padding:0 6px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--fg-3);font-size:var(--text-caption);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.chat-root .newchat{justify-content:flex-start;flex-shrink:0;gap:10px;height:42px;margin:0 14px 14px;padding:0 12px;border-color:var(--line-2);border-radius:8px;background:var(--panel);font-size:var(--text-small);font-weight:500;transition:border-color .18s var(--ease),background-color .18s var(--ease),transform .18s var(--ease)}.chat-root .newchat>svg:first-child{color:var(--fg-2)}.chat-root .newchat:hover{transform:translateY(-1px);border-color:var(--line-3);background:var(--panel-2)}.chat-root .newchat:active{transform:none}.chat-root .chat-newchat-mark{margin-left:auto;color:var(--fg-3)}.chat-root .search{flex-shrink:0;gap:9px;height:36px;margin:0 14px 8px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:var(--text-caption);transition:border-color .18s var(--ease),background-color .18s var(--ease)}.chat-root .search:focus-within{border-color:var(--line-3);background:var(--panel-2);outline:2px solid var(--acc-line);outline-offset:2px}.chat-root .search input{width:100%;height:100%;font-size:var(--text-caption)}.chat-root .hist{padding:0 14px 16px;overscroll-behavior:contain}.chat-root .hist h2{margin:20px 10px 8px;font-size:var(--text-caption);font-weight:450;letter-spacing:.015em;text-transform:none}.chat-root .hist-item{position:relative;min-height:40px;margin-bottom:4px;border:1px solid transparent;border-radius:8px;transition:background-color .18s var(--ease),border-color .18s var(--ease)}.chat-root .hist-item:hover{background:var(--panel)}.chat-root .hist-item>button:first-child{display:flex;align-items:center;align-self:stretch;padding:10px 11px;border-radius:7px;background:transparent;font-size:var(--text-caption);line-height:1.6;transition:color .18s var(--ease)}.chat-root .chat-history-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-root .hist-item>button:first-child:hover{background:transparent;color:var(--fg)}.chat-root .hist-item.on{border-color:var(--line);background:var(--panel-2)}.chat-root .hist-item.on:before{content:"";position:absolute;inset:14px auto 14px -1px;width:2px;border-radius:2px;background:var(--acc)}.chat-root .hist-item.on>button:first-child{background:transparent;color:var(--fg)}.chat-root .hist-item .del{display:grid;place-items:center;margin-right:5px;width:25px;height:25px;transition:opacity .18s var(--ease),color .18s var(--ease),background-color .18s var(--ease)}.chat-root .hist-item:focus-within .del{opacity:1}.chat-root .hist-item .del:hover{background:var(--bg);color:var(--fg)}.chat-root .side-foot{padding:16px 20px 18px}.chat-root .zdr-note i{background:var(--ok);box-shadow:none}.chat-root .keyrow,.chat-root .zdr-note{font-size:var(--text-caption)}.chat-root .main{grid-template-rows:88px minmax(0,1fr) auto}.chat-root .head{gap:12px;padding:0 26px}.chat-root .chat-heading{min-width:0}.chat-root .chat-breadcrumb{display:flex;align-items:center;gap:9px;margin-bottom:4px;color:var(--fg-3);font-size:var(--text-caption)}.chat-root .head h1{font-size:22px;font-weight:600;letter-spacing:-.04em}.chat-root .head-r{align-items:center;gap:9px}.chat-root .chat-collapse-history>svg,.chat-root .head-r button>svg{flex-shrink:0}.chat-root .gbtn{border-radius:7px;font-size:var(--text-caption)}.chat-root .chat-connection{display:inline-flex;align-items:center;gap:6px;font-size:var(--text-caption);color:var(--fg-2);white-space:nowrap}.chat-root .chat-connection i{width:6px;height:6px;border:1px solid var(--fg-3);border-radius:50%}.chat-root .chat-connection.connected i{background:var(--ok);border-color:var(--ok)}.chat-root .chat-connection:hover{color:var(--fg)}.chat-root .chat-connection-icon{display:none}.chat-root .thread{padding:32px 28px 16px}.chat-root .thread-in{max-width:820px;gap:30px}.chat-root .chat-box-context{display:flex;align-items:center;gap:12px;min-width:0;max-width:820px;margin:0 auto 12px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.chat-root .chat-box-context>svg{flex-shrink:0;color:var(--fg-3)}.chat-root .chat-box-context>div{flex:1 1;min-width:0}.chat-root .chat-box-context p{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;line-height:1.5}.chat-root .chat-box-context strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;color:var(--fg-2);font-size:var(--text-caption);font-weight:550}.chat-root .chat-box-context-label,.chat-root .chat-box-context>div>span{color:var(--fg-3);font-size:var(--text-caption)}.chat-root .chat-box-context>div>span{display:block;margin-top:2px;overflow-wrap:anywhere}.chat-root .chat-box-context>button{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:6px 0 6px 6px;color:var(--fg-2);font-size:var(--text-caption)}.chat-root .chat-box-context>button:hover{color:var(--fg)}.chat-root .chat-preview-notice{max-width:820px;margin:9px auto 0;color:var(--fg-2);font-size:var(--text-caption)}.chat-root .empty{gap:14px;padding-top:min(12vh,130px)}.chat-root .chat-welcome-mark{display:grid;place-items:center;width:58px;height:58px;margin-bottom:8px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.chat-root .chat-welcome-mark svg{width:30px;height:30px}.chat-root .chat-eyebrow{color:var(--fg-3);font-size:var(--text-caption);font-weight:600;letter-spacing:.16em}.chat-root .empty h2{font-size:clamp(24px,2.1vw,34px);font-weight:550;letter-spacing:-.045em}.chat-root .empty p{color:var(--fg-2);font-size:var(--text-small);line-height:1.8}.chat-root .empty .sugs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;grid-gap:10px;gap:10px;margin-top:24px;text-align:left}.chat-root .empty .sugs button{position:relative;display:flex;flex-direction:column;gap:8px;max-width:none;min-height:146px;padding:18px 16px;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:var(--text-caption);line-height:1.6;text-align:left;transition:transform .2s ease,border-color .2s ease,background-color .2s ease}.chat-root .empty .sugs button:hover{transform:translateY(-3px);border-color:var(--line-3);background:var(--panel-2)}.chat-root .sugs button b{color:var(--fg);font-size:var(--text-small);font-weight:550}.chat-root .sugs .suggestion-icon{color:var(--acc);font-size:20px;line-height:1.2}.chat-root .sugs .suggestion-arrow{position:absolute;top:16px;right:16px;color:var(--fg-3);font-size:15px}.chat-root .demolink{display:inline-flex;align-items:center;gap:10px;border:0;font-size:var(--text-caption);color:var(--fg-3);animation:none}.chat-root .demolink:hover{color:var(--fg)}.chat-root .msg{padding:0;border-radius:0}.chat-root .msg.me .bub{padding:14px 18px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);font-size:var(--text-small)}.chat-root .assistant-label{display:flex;align-items:center;gap:9px;margin-bottom:14px;font-size:var(--text-small);font-weight:550}.chat-root .assistant-label svg{width:20px;height:20px}.chat-root .assistant-live{margin-left:4px;color:var(--fg-3);font-size:var(--text-caption);font-weight:400}.chat-root .body{font-size:var(--text-small);line-height:1.8}.chat-root .body .mdtable tbody tr,.chat-root .body li,.chat-root .body>*{animation:none}.chat-root .body .md-h:before{display:none}.chat-root .body .caret{box-shadow:none;animation:blink 1s steps(1) infinite}.chat-root .body .mdtable{border-radius:7px}.chat-root .body td,.chat-root .body th{border-right:1px solid var(--line);padding:10px 12px}.chat-root .body th{font-size:var(--text-caption);letter-spacing:0;text-transform:none}.chat-root .body td:last-child,.chat-root .body th:last-child{border-right:0}.chat-root .meta{margin-top:12px;font:var(--text-caption) var(--sans);color:var(--fg-3)}.chat-root .meta .ok{color:var(--ok)}.chat-root .composer{padding:16px 26px 22px}.chat-root .box{max-width:820px;border-radius:12px;box-shadow:none}.chat-root .box textarea{min-height:72px;padding:19px 18px 4px;font-size:var(--text-small)}.chat-root .tools{padding:6px 10px 10px}.chat-root .sel select{max-width:230px;font:var(--text-caption) var(--sans)}.chat-root .send{width:34px;height:34px;border-radius:8px}.chat-root .hint{justify-content:space-between;gap:10px;max-width:820px;font-size:var(--text-caption);color:var(--fg-3)}.chat-root .rail{background:var(--bg)}.chat-root .chat-rail-title{display:flex;align-items:center;justify-content:space-between;height:88px;padding:0 20px;border-bottom:1px solid var(--line);color:var(--fg-2);font-size:var(--text-small)}.chat-root .chat-rail-title button{padding:4px;font-size:18px;color:var(--fg-3)}.chat-root .sec{padding:22px 20px}.chat-root .sec h2{font-size:var(--text-caption);font-weight:550;letter-spacing:.07em}.chat-root .sec h2 a{font-size:var(--text-caption);color:var(--fg-3)}.chat-root .kv{gap:9px}.chat-root .kv div{font-size:var(--text-caption)}.chat-root .kv dd{max-width:150px;font:var(--text-caption) var(--mono)}.chat-root .kv dd.ok{color:var(--ok)}.chat-root .model-name{display:block}.chat-root .model-name b,.chat-root .model-name span{font-size:var(--text-caption)}.chat-root .model-name span{display:block;margin-top:5px}.chat-root .chat-rail-controls{display:grid;grid-gap:18px;gap:18px}.chat-root .chat-rail-controls label{display:grid;grid-gap:8px;gap:8px;color:var(--fg-2);font-size:var(--text-caption)}.chat-root .chat-rail-controls select{width:100%;height:40px;padding:0 10px;border:1px solid var(--line-2);border-radius:7px}.chat-root .chat-baseline,.chat-root .chat-rail-controls select{background:var(--panel);color:var(--fg);font-size:var(--text-caption)}.chat-root .chat-baseline{display:flex;align-items:center;gap:8px;margin-top:4px;padding:14px 10px;border:1px solid var(--line);border-radius:8px}.chat-root .chat-baseline b{margin-left:auto;padding:2px 5px;border-radius:4px;background:rgba(63,191,127,.1);color:var(--ok);font-size:var(--text-caption);font-weight:500;white-space:nowrap}.chat-root .rail-note{padding:20px;font-size:var(--text-caption)}.chat-root .connect{border-radius:12px}.chat-root .connect .btn,.chat-root .connect .btn-sec{border-radius:7px;box-shadow:none}@media (min-width:1450px){.chat-root.rail-open .rail{display:block}}@media (max-width:1449px){.chat-root.rail-open .rail{position:fixed;inset:0 0 0 auto;z-index:35;display:block;width:min(320px,90vw);box-shadow:-18px 0 60px rgba(0,0,0,.4)}.chat-root .head-r .gbtn.details{display:inline-flex}}@media (max-width:1100px){.chat-root>.side{display:none}.chat-root .chat-history-toggle,.chat-root .chat-new-shortcut{display:inline-flex}.chat-root .sugs button{min-height:130px}}@media (max-width:760px){.chat-root .main{grid-template-rows:68px minmax(0,1fr) auto}.chat-root .head{padding:0 14px;gap:10px}.chat-root .head h1{font-size:20px}.chat-root .thread{padding:26px 20px 12px}.chat-root .composer{padding:12px 16px calc(14px + env(safe-area-inset-bottom))}.chat-root .empty{padding-top:7vh}.chat-root .chat-history-drawer{inset:12px auto 12px 12px;width:min(330px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}}@media (max-width:560px){.chat-root .head-r{gap:1px}.chat-root .chat-breadcrumb{font-size:var(--text-caption);gap:5px}.chat-root .head h1{font-size:18px}.chat-root .chat-history-toggle,.chat-root .chat-new-shortcut{width:28px;padding:0;justify-content:center}.chat-root .chat-history-toggle>span{display:none}.chat-root .gbtn.details{width:31px;padding:0;justify-content:center;font-size:0}.chat-root .chat-connection{max-width:115px;font-size:var(--text-caption);width:26px;height:28px;justify-content:center}.chat-root .chat-connection>i,.chat-root .chat-connection>span{display:none}.chat-root .chat-connection-icon{display:block}.chat-root .chat-connection.connected .chat-connection-icon{color:var(--ok)}.chat-root .empty .sugs{grid-template-columns:1fr;gap:8px;margin-top:12px}.chat-root .empty .sugs button{min-height:auto;padding:13px 14px 13px 45px;gap:2px}.chat-root .sugs .suggestion-icon{position:absolute;top:15px;left:15px}.chat-root .sugs .suggestion-arrow{top:12px;right:12px}.chat-root .empty h2{font-size:25px}.chat-root .empty{padding-top:18px;gap:10px}.chat-root .chat-welcome-mark{width:46px;height:46px;margin-bottom:0;border-radius:12px}.chat-root .hint span:last-child{display:none}.chat-root .sel select{max-width:230px}.chat-root .body{font-size:var(--text-small)}.chat-root .body td,.chat-root .body th{padding:8px;min-width:100px}.chat-root .chat-box-context{flex-wrap:wrap;gap:8px;padding:11px 12px}.chat-root .chat-box-context>div{flex-basis:calc(100% - 25px)}.chat-root .chat-box-context>button{margin-left:25px;padding:0}}@media (hover:none){.chat-root .hist-item .del{opacity:1}}@media (min-width:1101px){.chat-root.history-collapsed>.side{display:none}.chat-root.history-collapsed .chat-new-shortcut{display:inline-flex}.chat-root .chat-history-toggle{width:34px;padding:0;justify-content:center}.chat-root .chat-history-toggle>span{display:none}}@media (prefers-reduced-motion:reduce){.chat-root *,.chat-root :after,.chat-root :before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.chat-sidebar-content .newchat{display:flex;align-items:center;justify-content:center;gap:8px;height:36px;margin:0 12px 12px;border:1px solid var(--line-2);border-radius:10px;color:var(--fg);font-weight:550;transition:border-color .15s,background-color .15s}.chat-sidebar-content .newchat:hover{border-color:var(--acc-line);background:var(--acc-dim)}.chat-sidebar-content .search{display:flex;align-items:center;gap:8px;height:32px;margin:0 12px 10px;padding:0 2px;border-bottom:1px solid var(--line);color:var(--fg-3);font-size:var(--text-small);transition:border-color .15s}.chat-sidebar-content .search:focus-within{border-bottom-color:var(--acc-line)}.chat-sidebar-content .search input{flex:1 1;min-width:0;border:0;background:transparent;outline:none;color:var(--fg)}.chat-sidebar-content .search input::placeholder{color:var(--fg-3)}.chat-sidebar-content .hist{flex:1 1;min-height:0;overflow:auto;padding:2px 10px 8px;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}.chat-sidebar-content .hist h2{margin:14px 6px 6px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--fg-3)}.chat-sidebar-content .hist-item{display:flex;align-items:center}.chat-sidebar-content .hist-item>button:first-child{flex:1 1;min-width:0;padding:7px 9px;border-radius:8px;text-align:left;color:var(--fg-2);font-size:var(--text-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:background-color .12s,color .12s}.chat-sidebar-content .hist-item>button:first-child:hover{background:rgba(255,255,255,.04)}.chat-sidebar-content .hist-item.on>button:first-child{background:var(--panel-2)}.chat-sidebar-content .hist-item .del{flex:none;width:26px;height:26px;border-radius:6px;color:var(--fg-3);opacity:0;font-size:14px}.chat-sidebar-content .hist-item .del:focus-visible,.chat-sidebar-content .hist-item:hover .del{opacity:1}.chat-sidebar-content .hist-item .del:hover{background:rgba(255,255,255,.05)}.chat-sidebar-content .hist-empty{padding:8px;font-size:var(--text-small);color:var(--fg-3)}.chat-sidebar-content .newchat{justify-content:flex-start;flex-shrink:0;gap:10px;margin:0 14px 14px;padding:0 12px;border-color:var(--line-2);border-radius:8px;background:var(--panel);font-size:var(--text-small);font-weight:500;transition:border-color .18s var(--ease),background-color .18s var(--ease),transform .18s var(--ease)}.chat-sidebar-content .newchat>svg:first-child{color:var(--fg-2)}.chat-sidebar-content .newchat:hover{transform:translateY(-1px);border-color:var(--line-3);background:var(--panel-2)}.chat-sidebar-content .newchat:active{transform:none}.chat-sidebar-content .chat-newchat-mark{margin-left:auto;color:var(--fg-3)}.chat-sidebar-content .search{flex-shrink:0;gap:9px;height:36px;margin:0 14px 8px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:var(--text-caption);transition:border-color .18s var(--ease),background-color .18s var(--ease)}.chat-sidebar-content .search:focus-within{border-color:var(--line-3);background:var(--panel-2);outline:2px solid var(--acc-line);outline-offset:2px}.chat-sidebar-content .search input{width:100%;height:100%;font-size:var(--text-caption)}.chat-sidebar-content .hist{padding:0 14px 16px;overscroll-behavior:contain}.chat-sidebar-content .hist h2{margin:20px 10px 8px;font-size:var(--text-caption);font-weight:450;letter-spacing:.015em;text-transform:none}.chat-sidebar-content .hist-item{position:relative;min-height:40px;margin-bottom:4px;border:1px solid transparent;border-radius:8px;transition:background-color .18s var(--ease),border-color .18s var(--ease)}.chat-sidebar-content .hist-item:hover{background:var(--panel)}.chat-sidebar-content .hist-item>button:first-child{display:flex;align-items:center;align-self:stretch;padding:10px 11px;border-radius:7px;background:transparent;font-size:var(--text-caption);line-height:1.6;transition:color .18s var(--ease)}.chat-sidebar-content .hist-item>button:first-child:hover{background:transparent;color:var(--fg)}.chat-sidebar-content .hist-item.on{border-color:var(--line);background:var(--panel-2)}.chat-sidebar-content .hist-item.on:before{content:"";position:absolute;inset:14px auto 14px -1px;width:2px;border-radius:2px;background:var(--acc)}.chat-sidebar-content .hist-item.on>button:first-child{background:transparent;color:var(--fg)}.chat-sidebar-content .hist-item .del{display:grid;place-items:center;margin-right:5px;width:25px;height:25px;transition:opacity .18s var(--ease),color .18s var(--ease),background-color .18s var(--ease)}.chat-sidebar-content .hist-item:focus-within .del{opacity:1}.chat-sidebar-content .hist-item .del:hover{background:var(--bg);color:var(--fg)}@media (hover:none){.chat-sidebar-content .hist-item .del{opacity:1}}.chat-root,.chat-root.history-collapsed{height:100%;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.chat-root.history-collapsed.rail-open,.chat-root.rail-open{grid-template-columns:minmax(0,1fr) 288px}.chat-root .main{grid-column:1;grid-row:1;grid-template-rows:70px minmax(0,1fr) auto}.chat-root .head{padding:0 30px}.chat-root .chat-heading h1{font-size:18px;font-weight:650}.chat-root .head-r .gbtn{display:inline-flex;min-height:36px;border:1px solid var(--line);padding:0 11px;color:var(--fg-2);border-radius:7px}.chat-root .head-r .gbtn:hover{background:var(--panel);color:var(--fg)}.chat-root .chat-history-toggle>span{display:none}.chat-root .chat-new-shortcut{display:inline-flex}.chat-root .thread{padding:38px 36px 24px}.chat-root .thread-in{max-width:880px;gap:35px}.chat-root .assistant-label{margin-bottom:18px}.chat-root .body{font-size:16px;line-height:1.85}.chat-root .body h3.md-h{font-size:24px;letter-spacing:-.035em}.chat-root .composer{padding:18px 32px 25px}.chat-root .box{max-width:880px;background:var(--panel);border:1px solid var(--line-3)}.chat-root .box textarea{font-size:16px;min-height:77px}.chat-root .send{width:44px;height:44px;background:var(--acc);color:var(--acc-ink)}.chat-root .send:hover{background:var(--acc-2)}.chat-root .hint{max-width:880px;font-size:11px}.chat-root .tools .effort,.chat-root .tools .policy{display:none}.chat-root .empty{padding-top:clamp(30px,7vh,100px)}.chat-root .empty h2{font-size:clamp(27px,3vw,40px);font-weight:700}.chat-root .empty .sugs{margin-top:16px}.chat-root .rail{grid-column:2;grid-row:1}.chat-root.rail-open .rail{position:static;display:block;width:auto;box-shadow:none}.chat-root .chat-rail-title{height:70px;font-weight:650;color:var(--fg)}.chat-root .chat-rail-controls{padding-top:25px;gap:23px}.chat-root .chat-rail-controls label{font-size:13px}.chat-root .chat-rail-controls label>span{display:flex;justify-content:space-between}html body .chat-root .chat-rail-controls textarea.input{min-height:112px;height:auto;padding:12px;resize:vertical;font:13px/1.6 var(--sans)}.chat-root .chat-rail-controls input[type=range]{width:100%;accent-color:var(--acc)}.chat-streaming{display:flex;justify-content:space-between;align-items:center}.chat-reset,.chat-streaming{font-size:13px;color:var(--fg-2)}.chat-reset{justify-self:start}.chat-reset:hover{color:var(--fg)}.chat-sidebar-history{border-top:1px solid var(--line);padding:18px 0}.chat-sidebar-content .newchat{background:var(--acc);color:var(--acc-ink);border-color:var(--acc);height:42px;font-size:13px}.chat-sidebar-history .search{display:none}.chat-sidebar-history .hist{max-height:190px;padding-inline:10px}.chat-sidebar-history .hist h2{font-size:10px;margin-top:5px}.chat-code-dialog{width:min(660px,calc(100vw - 32px));margin:auto;padding:24px;background:var(--panel);color:var(--fg);border:1px solid var(--line-2);border-radius:12px}.chat-code-dialog::-webkit-backdrop{background:rgb(0 0 0/.65);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.chat-code-dialog::backdrop{background:rgb(0 0 0/.65);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.chat-code-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.chat-code-dialog h2{font-size:22px}.chat-code-dialog header button{font-size:27px;width:34px;height:34px}.chat-code-dialog pre{padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--bg);font:12px/1.8 var(--mono);overflow:auto}.chat-code-dialog>a{display:inline-block;margin-top:20px;color:var(--acc)}@media(max-width:1199px){.chat-root,.chat-root.history-collapsed,.chat-root.history-collapsed.rail-open,.chat-root.rail-open{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.chat-root.rail-open .rail{position:fixed;inset:72px 0 0 auto;width:288px;z-index:35;box-shadow:-15px 0 45px rgb(0 0 0/.4)}.chat-root .head{padding:0 20px}.chat-root .thread{padding:25px}.chat-root .composer{padding:18px 23px}.chat-root .export{display:none!important}}@media(max-width:760px){.chat-root .main{grid-column:1;grid-row:1;grid-template-rows:60px minmax(0,1fr) auto}.chat-root .head{padding:0 15px}.chat-root .head-r .gbtn{font-size:11px;padding:0 8px}.chat-root .head-r .details{font-size:0;width:32px;padding:0;justify-content:center}.chat-root .head-r .chat-new-shortcut{display:none}.chat-root .thread{padding:24px 18px}.chat-root .composer{padding:12px 14px 18px}.chat-root .body{font-size:15px}.chat-root .empty .sugs{grid-template-columns:1fr}.chat-root .empty .sugs button{min-height:auto}.chat-root .hint span:first-child{font-size:10px}.chat-root.rail-open .rail{inset:64px 0 0 auto}}.chat-sidebar-content .newchat:hover{background:var(--acc-2);border-color:var(--acc-2)}.chat-sidebar-content .newchat .chat-newchat-mark,.chat-sidebar-content .newchat>svg:first-child{color:var(--acc-ink)}@media(prefers-reduced-motion:reduce){.chat-sidebar-content *{animation:none!important;transition:none!important}}.chat-root .chip:before{content:none}