.chat-working-icon{transform-origin:50%;flex:none;display:block}.chat-working-icon.is-working{animation:3s linear infinite chat-turn}@keyframes chat-turn{to{transform:rotate(360deg)}}.chat-bubble{background:var(--chat-bubble);width:fit-content;max-width:75%;min-height:44px;color:var(--fg);border-radius:22px;align-items:center;gap:12px;margin-left:auto;padding:9px 16px;font-size:16px;line-height:26px;display:flex}.chat-bubble.has-files{padding:12px 16px}.chat-bubble-text{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.chat-bubble-files{flex-wrap:wrap;flex:none;justify-content:flex-end;gap:6px;min-width:40px;max-width:100%;margin:0;padding:0;list-style:none;display:flex}.chat-bubble-file{border:1px solid var(--chat-line);background:var(--surface);width:40px;height:40px;color:var(--chat-muted);border-radius:8px;place-items:center;display:grid;overflow:hidden}.chat-bubble-file img{object-fit:cover;width:100%;height:100%;display:block}.chat-step{min-width:0;color:var(--chat-muted);grid-template-columns:18px minmax(0,1fr);align-items:start;column-gap:14px;animation:.15s ease-out chat-fade-in;display:grid}@keyframes chat-fade-in{0%{opacity:0}}.chat-step-icon{place-items:center;height:26px;display:grid}.chat-step.is-failed>.chat-step-icon{color:var(--bad)}.chat-step-title{overflow-wrap:anywhere;font-size:16px;line-height:26px}.chat-step-thread{background:var(--chat-line);grid-column:1;align-self:stretch;width:1px;margin:4px 0 2px 8px}.chat-step-body{flex-direction:column;grid-column:2;gap:10px;min-width:0;margin-top:4px;display:flex}.chat-step-desc{overflow-wrap:anywhere;font-size:13px;line-height:18px}.chat-step.is-nested{grid-template-columns:16px minmax(0,1fr);column-gap:10px}.chat-step.is-nested>.chat-step-icon{height:22px}.chat-step.is-nested>.chat-step-title{font-size:14px;line-height:22px}.chat-step.is-nested>.chat-step-thread{margin-left:7px}.chat-thinking{min-height:32px;color:var(--chat-muted);text-align:left;background:0 0;border:0;align-items:center;gap:14px;padding:0;font-size:15px;line-height:22px;display:inline-flex}.chat-thinking:hover{color:var(--fg)}.chat-thinking-label{align-items:center;display:inline-flex}.chat-thinking-chevron{flex:none;margin:0 -6px 0 3px}.chat-thinking[aria-expanded=true] .chat-thinking-chevron{transform:rotate(90deg)}.chat-tabs{background:var(--panel-line);border-radius:16px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;height:36px;padding:4px;display:grid}.chat-tab{min-width:0;color:var(--fg);text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;border-radius:16px;padding:0 12px;font-size:14px;font-weight:500;line-height:28px;overflow:hidden}.chat-tab[aria-selected=true]{background:var(--chat-segment);box-shadow:var(--shadow-segment)}.chat-split{align-items:flex-start;display:flex}.chat-split>:first-child{flex:1;min-width:0}.chat-panel{z-index:50;background:var(--chat-bg);color:var(--fg);flex-direction:column;display:flex;position:fixed;inset:0}.chat-panel[hidden]{display:none}@media (min-width:640px){.chat-panel{border-left:1px solid var(--chat-line);width:400px;box-shadow:var(--shadow-side);left:auto}}@media (min-width:1100px){.chat-panel{z-index:auto;height:100dvh;box-shadow:none;flex:none;position:sticky;inset:0 auto auto}}.chat-panel-head{flex:none;padding:52px 16px 0;position:relative}.chat-panel-close{width:32px;height:32px;color:var(--fg);background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:grid;position:absolute;top:8px;right:15px}.chat-panel-close:hover{background:var(--hover)}.chat-panel-body{overscroll-behavior:contain;flex:1;min-height:0;padding:22px 16px 24px;overflow-y:auto}.chat-panel-body:focus-visible{outline-offset:-2px}.chat-steplist,.chat-steplist-children{margin:0;padding:0;list-style:none}.chat-steplist>li{grid-template-columns:22px minmax(0,1fr);column-gap:7px;padding-bottom:14px;display:grid;position:relative}.chat-steplist>li:last-child{padding-bottom:0}.chat-steplist>li:not(:last-child):before{content:"";background:var(--chat-line);width:1px;position:absolute;top:22px;bottom:2px;left:10.5px}.chat-steplist>li:has(+.chat-steplist-end):before{bottom:7px}.chat-steplist-marker{place-items:center;height:20px;display:grid}.chat-steplist-dot{background:var(--chat-muted);border-radius:50%;width:8px;height:8px}.chat-steplist-row.is-failed>.chat-steplist-marker>.chat-steplist-dot{background:var(--bad)}.chat-steplist-text{min-width:0}.chat-steplist-title{color:var(--chat-muted);overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:20px}.chat-steplist-desc{color:var(--chat-muted);overflow-wrap:anywhere;margin-top:5px;font-size:13px;line-height:21px}.chat-steplist-gallery{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.chat-steplist-media{background:var(--chat-bubble);border-radius:8px;width:72px;height:72px;display:block;position:relative;overflow:hidden}.chat-steplist-media img{object-fit:cover;width:100%;height:100%;display:block}.chat-steplist-play{color:#fff;background:#1111128c;border-radius:50%;place-items:center;width:28px;height:28px;margin:auto;display:grid;position:absolute;inset:0}.chat-steplist-play svg{margin-left:2px}.chat-steplist-body{color:var(--chat-muted);margin-top:8px;font-size:13px;line-height:21px}.chat-steplist-text>.chat-steplist-body:first-child{margin-top:0}.chat-steplist-fold>summary{cursor:pointer}.chat-steplist-children{flex-direction:column;gap:8px;margin-top:10px;display:flex}.chat-steplist-children>li{grid-template-columns:16px minmax(0,1fr);column-gap:8px;display:grid}.chat-steplist-row.is-nested .chat-steplist-title{font-size:13px;font-weight:400}.chat-steplist-row.is-nested .chat-steplist-desc{margin-top:0;line-height:18px}.chat-steplist-row.is-nested .chat-steplist-dot{width:6px;height:6px}.chat-steplist-end>.chat-steplist-marker{color:var(--chat-faint)}.chat-steplist-end.is-unfinished>.chat-steplist-marker{color:var(--bad)}.chat-sources{flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;display:flex}.chat-source{grid-template-columns:22px minmax(0,1fr);column-gap:7px;display:grid}.chat-source-icon{height:20px;color:var(--chat-muted);place-items:center;display:grid}.chat-source-icon img{object-fit:cover;border-radius:4px;width:16px;height:16px;display:block}.chat-source-text{flex-direction:column;min-width:0;display:flex}.chat-source-title{color:var(--fg);overflow-wrap:anywhere;font-size:14px;line-height:20px;text-decoration:none}a.chat-source-title:hover{text-decoration:underline}.chat-source-detail{color:var(--chat-muted);overflow-wrap:anywhere;font-size:13px;line-height:20px}.chat-sources-empty{color:var(--chat-muted);font-size:14px}.chat-media{width:100%;margin:0;position:relative}.chat-media-frame{background:var(--chat-bubble);border-radius:24px;overflow:hidden}.chat-media-frame>:is(img,video,iframe){border:0;width:100%;height:auto;display:block}.chat-media-frame.has-ratio>:is(img,video,iframe){object-fit:cover;height:100%}.chat-media-label{background:var(--chat-label);color:var(--fg);opacity:0;pointer-events:none;border-radius:6px;padding:4px 8px;font-size:13px;line-height:18px;position:absolute;top:-13px;right:6px}.chat-media:hover .chat-media-label,.chat-media:focus-within .chat-media-label{opacity:1}.chat-title-chip{background:var(--glass);-webkit-backdrop-filter:blur(36px);backdrop-filter:blur(36px);max-width:100%;height:36px;box-shadow:var(--shadow-chip);color:var(--fg);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;margin:0;padding:0 12px;font-size:15px;font-weight:400;line-height:36px;display:inline-block;overflow:hidden}.chat-float,.chat-scroll{background:var(--glass);-webkit-backdrop-filter:blur(36px);backdrop-filter:blur(36px);width:36px;height:36px;box-shadow:var(--shadow-chip);color:var(--fg);transition:background-color var(--ease);border:0;border-radius:50%;flex:none;place-items:center;padding:0;display:grid}.chat-scroll{width:32px;height:32px}.chat-float:hover:not(:disabled),.chat-scroll:hover{background:var(--surface-2)}.chat-float:disabled{opacity:.45}@media (prefers-reduced-motion:reduce){.chat-working-icon.is-working,.chat-step{animation:none}}@media (max-width:759.98px){.chat-tabs{height:44px}.chat-tab{line-height:36px}}
