:root{font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;color:#152820;background:#f7f9f8;font-synthesis:none;--pine: #132e26;--accent: #14654d;--soft: #e2f0e9;--line: #dbe5df;--muted: #53675f}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px}button,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.6}button:focus-visible,textarea:focus-visible{outline:2px solid #44a589;outline-offset:3px}.loading-shell{display:grid;place-items:center;min-height:100dvh;padding:24px;background:radial-gradient(ellipse at 50% 0%,#dcefe6,transparent 65%),#f7f9f8}.loading-error{display:grid;justify-items:center;gap:16px}.brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:1.125rem;letter-spacing:-.025em}.brand-mark,.welcome-mark{display:grid;place-items:center;font-weight:750}.brand-mark{width:34px;height:34px;border-radius:10px;background:#cdf0df;color:#123e30}.primary{padding:10px 17px;border:1px solid transparent;border-radius:9px;background:var(--accent);color:#fff;font-weight:650}.primary:hover:enabled{background:#104c3b}.error{color:#9b2b24;font-size:.9rem;margin:0}.workspace{height:100dvh;display:grid;grid-template-columns:260px minmax(0,1fr)}.sidebar{display:flex;flex-direction:column;min-height:0;padding:25px 17px 18px;gap:25px;background:var(--pine);color:#f1f7f4}.sidebar .brand{margin:0 7px}.new-chat{display:flex;align-items:center;gap:8px;padding:11px 13px;text-align:left;border:1px solid #55746a;border-radius:9px;background:transparent;color:inherit;font-weight:600}.new-chat:hover:enabled,.sidebar-section-toggle:hover:enabled,.history-item:hover:enabled{background:#234436}.new-chat span{font-size:1.1rem;line-height:1}.sidebar-section-heading{display:flex;align-items:center;gap:2px;min-height:28px;margin:0 9px 4px;color:#abcbbe}.sidebar-section-heading h2{margin:0;font-size:.875rem;font-weight:600}.sidebar-section-toggle{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit}.sidebar-section-toggle:after{content:"";width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:translate(-1px) rotate(-45deg)}.sidebar-section-toggle[aria-expanded=true]:after{transform:translateY(-2px) rotate(45deg)}.sidebar-files{max-height:min(34dvh,300px);overflow:auto;padding-bottom:3px;scrollbar-color:#55746a transparent}.sidebar-files .error{color:#ffb4ae;margin:6px}.file-status{color:#afc6bb;margin:8px 6px;font-size:.85rem}.file-list{list-style:none;margin:0;padding:0}.file-list button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;width:100%;padding:9px;border:0;border-radius:7px;background:transparent;color:inherit;text-align:left}.file-name,.file-conversation{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-size,.file-conversation{color:#afc6bb;font-size:.8rem}.file-conversation{grid-column:1 / -1}.file-list-more{margin-top:5px;padding:6px;border:0;border-radius:7px;background:transparent;color:#cdf0df;font-size:.85rem}.file-list button:hover:enabled,.file-list-more:hover{background:#234436}.sidebar nav{flex:1;min-height:0;overflow:auto}.empty-history{color:#afc6bb;font-size:.875rem;margin:12px 9px}.history-item{display:block;width:100%;border:0;border-radius:7px;padding:9px;color:inherit;background:transparent;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.history-item[aria-current]{background:#315446}.session-info{padding:12px 8px 0;border-top:1px solid #355548;color:#afc6bb;font-size:.8125rem}.chat{min-height:0;min-width:0;display:grid;grid-template:auto minmax(0,1fr) auto / minmax(0,1fr)}.chat-header{display:flex;min-width:0;align-items:center;gap:12px;min-height:68px;padding:13px clamp(16px,4vw,40px);background:#fff;border-bottom:1px solid var(--line)}.chat-header h1{flex:1;min-width:0;font-weight:650;font-size:1rem;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu-button,.mobile-files-button{display:none;border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit;padding:7px 10px}.mobile-files-button[aria-expanded=true]{background:var(--soft)}.feed{overflow:auto;min-height:0;padding:24px clamp(16px,4vw,40px)}.welcome{height:100%;display:grid;align-content:center;justify-items:center;gap:16px;text-align:center}.welcome-mark{width:58px;height:58px;border-radius:18px;font-size:1.6rem;background:var(--soft);color:var(--accent)}.welcome h2{margin:0;font-size:clamp(1.55rem,4vw,2.1rem);letter-spacing:-.035em}.messages{width:min(100%,760px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:29px}.turn{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.user-message{align-self:flex-end;max-width:min(90%,620px);padding:10px 15px;border-radius:14px 14px 4px;background:var(--soft)}.user-message:focus{outline:2px solid #44a589;outline-offset:3px}.assistant-message{display:flex;align-items:flex-start;max-width:100%;gap:10px;padding-right:10px}.assistant-message>div{min-width:0}.reply-status{min-width:0;margin:2px 0 0;line-height:1.62}.user-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.62}.reply-markdown{overflow-wrap:anywhere;line-height:1.65}.reply-markdown :where(p,ul,ol,blockquote,pre,hr,.markdown-table){margin:0 0 .8em}.reply-markdown :where(h1,h2,h3,h4,h5,h6){margin:1.15em 0 .45em;color:var(--pine);line-height:1.35}.reply-markdown h1{font-size:1.55em}.reply-markdown h2{font-size:1.32em}.reply-markdown h3{font-size:1.15em}.reply-markdown :where(h4,h5,h6){font-size:1em}.reply-markdown>:first-child{margin-block-start:0}.reply-markdown>:last-child{margin-block-end:0}.reply-markdown :where(ul,ol){padding-inline-start:1.5em}.reply-markdown li+li{margin-top:.28em}.reply-markdown li>:where(ul,ol){margin-block:.35em}.reply-markdown .task-list-item{list-style:none}.reply-markdown a{color:var(--accent);text-underline-offset:.15em}.reply-markdown hr{margin-block:1.15em;border:0;border-top:1px solid var(--line)}.reply-markdown blockquote{padding-inline-start:.85em;border-inline-start:3px solid #aac9ba;color:var(--muted)}.reply-markdown blockquote>:last-child{margin-block-end:0}.reply-markdown :where(pre,code){font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.reply-markdown pre{overflow-x:auto;padding:.8em 1em;border:1px solid var(--line);border-radius:9px;background:#edf3ef}.reply-markdown code{padding:.1em .28em;border-radius:4px;background:#e2ede6;font-size:.88em}.reply-markdown pre code{padding:0;background:transparent}.markdown-table{max-width:100%;overflow-x:auto}.markdown-table table{width:max-content;border-collapse:collapse;font-size:.92em}.markdown-table :where(th,td){max-width:32ch;padding:.4em .7em;border:1px solid var(--line)}.markdown-table th{background:var(--soft)}.reply-markdown img{max-width:100%;height:auto}.speaker{font-size:.75rem;font-weight:700;padding:5px 6px;border-radius:5px;background:#d8e9df;color:#204c3e}.thinking{color:var(--muted)}.composer-area{width:min(100%,840px);margin-inline:auto;padding:10px clamp(16px,4vw,40px) 14px}.composer-area .error{margin-bottom:8px}.composer{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px;background:#fff;border:1px solid #cddcd4;border-radius:15px}.composer-controls{display:flex;align-items:flex-end;gap:8px}.attach-button{padding:10px 8px;border:1px solid var(--line);border-radius:9px;color:var(--accent);background:#fff;white-space:nowrap}.attach-button:hover:enabled{background:var(--soft)}.attachments{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:0;gap:6px}.attachments li{display:flex;align-items:center;gap:6px;max-width:100%;padding:3px 7px;border-radius:6px;background:#f7f9f8;border:1px solid var(--line);font-size:.85rem}.attachments span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.attachments button{background:transparent;border:0;padding:0 3px;color:inherit}.user-message .attachments:not(:first-child){margin-top:4px}.composer textarea{flex:1;min-width:0;min-height:48px;resize:vertical;max-height:180px;border:0;border-radius:7px;background:transparent;color:inherit;padding:6px 8px}.composer textarea::placeholder{color:#61766b}.composer-hint{text-align:center;margin:7px 0 0;color:var(--muted);font-size:.8125rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:640px){.workspace{position:relative;grid-template-columns:minmax(0,1fr)}.menu-button,.mobile-files-button{display:inline-block}.sidebar{display:none;position:absolute;z-index:1;inset:68px auto 0 0;width:min(270px,85%);box-shadow:10px 0 24px #15282030}.sidebar[data-open=true]{display:flex}}
