.app-shell{display:flex;height:100dvh;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border-radius:8px;background:transparent;color:var(--muted);flex-shrink:0;transition:background .15s,color .15s}.icon-btn:hover:not(:disabled){background:var(--hover);color:var(--text)}.sidebar{display:flex;flex-direction:column;width:256px;flex:0 0 256px;padding:28px 16px 0;background:var(--sidebar);border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;padding:0 12px 28px;font-size:21px;font-weight:650;letter-spacing:-.7px}.brand-mark{background:var(--accent);color:var(--bg);display:grid;place-items:center;width:32px;height:32px;border-radius:10px}.brand-ai{font-weight:400;color:var(--muted)}.new-chat{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 2px 3px #00000003;font-weight:550}.new-chat:hover{border-color:var(--accent)}.new-chat>span{margin-left:auto;color:var(--muted);font-size:12px}.nav-label{display:flex;justify-content:space-between;margin:32px 12px 12px;font-size:11px;color:var(--muted);letter-spacing:1px}.nav-label span{font-size:10px;letter-spacing:0}.session-list{overflow-y:auto;flex:1}.session{display:flex;align-items:center;gap:11px;width:100%;padding:11px 12px;margin:3px 0;text-align:left;border-radius:8px;background:transparent;color:var(--muted);font-size:13px}.session>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session svg{flex-shrink:0}.session:hover{background:var(--hover)}.session.selected{color:var(--accent);background:var(--accent-soft);font-weight:550}.sidebar-bottom{margin-top:auto}.workspace-note{display:flex;align-items:flex-start;gap:9px;padding:16px 12px}.workspace-note strong{font-size:11px;font-weight:500;color:var(--muted)}.workspace-note p{color:var(--muted);opacity:.7;margin:3px 0;font-size:10px}.local-indicator{width:6px;height:6px;background:#7f9e70;border-radius:50%;margin-top:8px}.sidebar-footer{border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:18px 0}.profile-avatar{background:var(--hover);border:1px solid var(--line);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-size:12px}.sidebar-footer>div{flex:1;display:flex;flex-direction:column}.sidebar-footer strong{font-weight:500;font-size:11px}.sidebar-footer div span{font-size:9px;color:var(--muted)}.main-panel{display:flex;flex-direction:column;flex:1;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 34px;min-height:82px;border-bottom:1px solid var(--line);gap:12px}.header-title{display:flex;flex-direction:column;font-weight:550;font-size:13px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.header-title>span{color:var(--muted);font-size:10px;font-weight:400;margin-top:3px}.provider-badge{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:30px;padding:5px 10px;flex-shrink:0}.status-dot{width:5px;height:5px;border-radius:50%;background:#aaa}.status-dot.online{background:#7b9e70}.status-dot.offline{background:#d4876a}.chat-pane{display:flex;flex-direction:column;flex:1;min-height:0}.thread{display:flex;flex-direction:column;height:100%;min-height:0;position:relative}.thread-viewport{overflow-y:auto;flex:1;position:relative;display:flex;flex-direction:column;min-height:0}.welcome{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:40px 32px 30px;width:100%;max-width:920px;margin:auto}.welcome-orbit{display:grid;place-items:center;width:76px;height:76px;border-radius:24px;border:1px solid var(--line);color:var(--accent);background:linear-gradient(140deg,var(--accent-soft),var(--bg));transform:rotate(-7deg);margin-bottom:25px;box-shadow:0 8px 30px #6f87500a}.welcome-orbit svg{transform:rotate(7deg)}.eyebrow{font-size:9px;letter-spacing:3px;color:var(--muted);margin:0 0 14px}.welcome h1{font-size:clamp(25px,3vw,34px);letter-spacing:-1.2px;font-weight:500;margin:0 0 14px;line-height:1.4}.welcome-subtitle{font-size:12px;color:var(--muted);margin:0}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%;max-width:684px;margin-top:46px}.suggestion{display:flex;flex-direction:column;text-align:left;padding:18px 16px;border-radius:13px;border:1px solid var(--line);background:var(--surface);transition:transform .18s,border-color .18s,box-shadow .18s}.suggestion:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:var(--shadow)}.suggestion-icon{font-size:20px;color:var(--accent);margin-bottom:12px;line-height:1}.suggestion strong{font-size:12px;font-weight:550;margin-bottom:6px}.suggestion>span:last-child{font-size:10px;color:var(--muted);line-height:1.8}.composer-dock{flex-shrink:0;width:100%;max-width:800px;padding:12px 28px 14px;margin:0 auto;background:var(--bg)}.composer{border:1px solid var(--line);border-radius:18px;padding:14px 14px 10px;box-shadow:var(--shadow);background:var(--surface);transition:border-color .15s}.composer:focus-within{border-color:color-mix(in srgb,var(--accent),var(--line) 55%)}.composer-input{width:100%;border:0;background:transparent;color:var(--text);outline:none;resize:none;font-size:13px;line-height:1.8;min-height:56px;max-height:180px;padding:3px 5px 8px}.composer-input::placeholder{color:var(--muted)}.composer-toolbar{display:flex;align-items:center;gap:6px}.composer-hint{color:var(--muted);font-size:10px}.toolbar-spacer{flex:1}.send-btn{width:33px;height:33px;display:grid;place-items:center;background:var(--accent);color:var(--bg);border-radius:11px}.send-btn:disabled{opacity:.4}.cancel-btn{background:var(--text)}.disclaimer{text-align:center;color:var(--muted);font-size:9px;margin:12px 0 0;line-height:1.6}.messages{width:100%;max-width:800px;margin:0 auto;padding:22px 28px 0}.message{margin:16px 0 28px}.user-message{display:flex;justify-content:flex-end}.user-bubble{max-width:85%;border-radius:18px 18px 4px;background:var(--user);padding:12px 17px;font-size:13px;overflow-wrap:anywhere}.assistant-message{display:flex;gap:12px}.assistant-avatar{background:var(--accent-soft);color:var(--accent);width:30px;height:30px;display:grid;place-items:center;border-radius:10px;flex-shrink:0}.assistant-body{flex:1;min-width:0;padding-top:4px}.message-label{font-size:12px;font-weight:600;margin-bottom:15px;display:flex;align-items:center;gap:8px}.message-label>span{font-size:8px;letter-spacing:.8px;background:var(--accent-soft);color:var(--accent);border-radius:4px;padding:1px 5px;font-weight:500}.markdown{font-size:13px;line-height:1.9;overflow-wrap:anywhere}.markdown p{margin:10px 0}.markdown p:first-child{margin-top:0}.markdown h1,.markdown h2,.markdown h3{font-weight:600;line-height:1.6;margin:20px 0 10px}.markdown h1{font-size:22px}.markdown h2{font-size:19px}.markdown h3{font-size:16px}.markdown ul,.markdown ol{padding-left:22px;margin:12px 0}.markdown ul{list-style:disc}.markdown ol{list-style:decimal}.markdown li{margin:5px 0}.markdown blockquote{border-left:3px solid var(--line);padding:2px 14px;margin:15px 0;color:var(--muted)}.markdown code{font-family:SFMono-Regular,Consolas,monospace;font-size:11px;background:var(--hover);padding:2px 4px;border-radius:4px}.markdown pre{overflow-x:auto;border:1px solid var(--line);border-radius:10px;padding:16px;background:var(--sidebar);margin:14px 0}.markdown pre code{padding:0;background:transparent;font-size:11px}.markdown table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:14px 0;font-size:12px}.markdown th,.markdown td{border:1px solid var(--line);padding:7px 13px;text-align:left}.markdown th{background:var(--hover)}.markdown hr{border:0;border-top:1px solid var(--line);margin:20px 0}.reasoning,.tool-card{border:1px solid var(--line);border-radius:10px;font-size:11px;margin:10px 0;color:var(--muted);background:var(--surface)}.reasoning summary,.tool-card summary{cursor:pointer;padding:10px 12px;display:flex;align-items:center;gap:8px;list-style:none}.reasoning summary::-webkit-details-marker,.tool-card summary::-webkit-details-marker{display:none}.reasoning summary svg:last-child{margin-left:auto}.reasoning[open] summary svg:last-child{transform:rotate(180deg)}.reasoning p,.tool-card p{margin:0;padding:0 12px 12px;line-height:1.8;white-space:pre-wrap}.tool-card summary>span:nth-child(3){margin-left:auto;font-size:9px}.tool-card summary svg:last-child{color:var(--accent)}.message-actions{display:flex;gap:2px;margin-top:8px}.message-actions .icon-btn{width:28px;height:28px}.stream-cursor{display:inline-block;width:6px;height:12px;margin-left:3px;border-radius:2px;background:var(--accent);animation:pulse 1.2s infinite}.pulse{animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.35}}.response-note{font-size:11px;color:var(--muted);border-left:2px solid var(--line);padding-left:10px;margin:12px 0}.scroll-anchor{position:sticky;bottom:12px;height:0;align-self:center;z-index:1}.scroll-bottom{background:var(--surface);border:1px solid var(--line);border-radius:50%;box-shadow:var(--shadow)}.composer-attachments{display:flex;flex-wrap:wrap;gap:6px}.composer-attachments:not(:empty){padding-bottom:10px}.attachment{display:inline-flex;align-items:center;max-width:230px;border:1px solid var(--line);padding:5px;gap:7px;border-radius:9px;background:var(--surface);margin:3px;font-size:10px;color:var(--muted);vertical-align:middle}.attachment img{width:45px;height:45px;object-fit:cover;border-radius:5px}.attachment>span{max-width:125px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.attachment .icon-btn{width:22px;height:22px}.attachment-error,.server-warning{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--accent-soft);color:var(--accent);padding:9px 13px;border-radius:9px;font-size:11px;margin-bottom:9px}.server-warning{margin:10px 28px 0}.mobile-menu,.sidebar-close,.sidebar-backdrop{display:none}@media(min-width:1440px){.welcome{padding-bottom:70px}.suggestions{margin-top:54px}}@media(max-width:960px){.sidebar{width:220px;flex-basis:220px}.topbar{padding:0 24px}.welcome{padding-left:24px;padding-right:24px}.suggestions{gap:8px}.suggestion{padding:14px 12px}.suggestion>span:last-child{font-size:9px}}@media(max-width:720px){.sidebar{position:fixed;inset:0 auto 0 0;width:270px;z-index:30;transform:translate(-100%);transition:transform .2s}.sidebar.open{transform:translate(0)}.sidebar-backdrop{display:block;position:fixed;inset:0;background:#0005;z-index:20}.sidebar-close{display:inline-flex;margin-left:auto}.mobile-menu{display:inline-flex}.topbar{min-height:65px;padding:0 16px;justify-content:flex-start}.header-title{flex:1}.header-title>span{display:none}.provider-badge{font-size:9px;padding:4px 8px}.welcome{padding:28px 20px}.welcome-orbit{width:60px;height:60px;margin-bottom:22px;border-radius:20px}.welcome-subtitle{max-width:250px;font-size:11px;line-height:1.9}.suggestions{grid-template-columns:1fr;margin-top:30px;max-width:360px;gap:8px}.suggestion{display:grid;grid-template-columns:26px 1fr;column-gap:9px;padding:12px 14px}.suggestion-icon{grid-row:span 2;margin:0;align-self:center}.suggestion strong{font-size:11px;margin-bottom:2px}.suggestion>span:last-child{font-size:10px}.messages{padding:14px 16px 0}.assistant-message{gap:9px}.assistant-avatar{width:26px;height:26px;border-radius:8px}.composer-dock{padding:8px 12px max(10px,env(safe-area-inset-bottom))}.composer{padding:10px 10px 8px;border-radius:16px}.composer-input{font-size:16px;min-height:55px}.disclaimer{font-size:8px;max-width:300px;margin:9px auto 0}.composer-hint{font-size:9px}.user-bubble{max-width:90%}}.code-highlight .token.comment{color:var(--muted)}.code-highlight .token.keyword,.code-highlight .token.operator{color:#a675b3}.code-highlight .token.string,.code-highlight .token.function{color:#64895a}.code-highlight .token.number,.code-highlight .token.boolean{color:#bb8556}[data-theme=dark] .code-highlight .token.string,[data-theme=dark] .code-highlight .token.function{color:#a5c799}.scroll-bottom:disabled{visibility:hidden}.auth-screen{min-height:100vh;display:grid;place-content:center;gap:1rem;padding:2rem}.auth-bar{display:flex;gap:1rem;align-items:center;padding:.5rem 1rem}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.hidden{display:none}.table{display:table}}:root{color-scheme:light;--bg:#fcfcfa;--sidebar:#f3f3ef;--surface:#fff;--text:#292d29;--muted:#81877f;--line:#e5e7df;--accent:#466c50;--accent-soft:#e8eee5;--hover:#ebede6;--user:#eff1e9;--shadow:0 8px 40px #29382908;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Noto Sans SC,Microsoft YaHei,sans-serif}:root[data-theme=dark]{color-scheme:dark;--bg:#171b18;--sidebar:#121613;--surface:#202621;--text:#e4e9e1;--muted:#929d90;--line:#30392f;--accent:#adc9a6;--accent-soft:#2b3b2b;--hover:#252e25;--user:#2b362b;--shadow:0 8px 40px #0002}*{box-sizing:border-box}html,body,#root{background:var(--bg);height:100%;color:var(--text);margin:0}body{font-size:14px;line-height:1.65}button,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.4}button,a,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{border:0}a{color:var(--accent);text-underline-offset:3px}[hidden]{display:none!important}::selection{background:var(--accent-soft)}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:var(--line);border-radius:6px}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
