:root{--bg: #141922;--surface: #1f2632;--surface-2: #2a3342;--line: #394559;--text: #f1f4fa;--muted: #a3aec3;--accent: #2196f3;--accent-tx: #64b5f6;--asoft-tx: #64b5f6;--danger: #ff5a4f;--ink: #10141b;--logo-wing: #ffffff;--shadow: 0 1px 2px rgba(0, 0, 0, .35);--scrim: rgba(0, 0, 0, .6);--safe-b: env(safe-area-inset-bottom);--safe-t: env(safe-area-inset-top);color-scheme:dark}html.light{--bg: #f4f6f9;--surface: #ffffff;--surface-2: #e9ecf2;--line: #d8dce5;--text: #1a1d24;--muted: #5a6170;--accent: #1976d2;--accent-tx: #1565c0;--asoft-tx: #1565c0;--danger: #c62828;--logo-wing: #10141b;--shadow: 0 1px 2px rgba(16, 20, 27, .06), 0 4px 14px rgba(16, 20, 27, .06);--scrim: rgba(16, 20, 27, .35);color-scheme:light}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:16px/1.45 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overscroll-behavior:none}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none;padding:0}button:disabled{opacity:.45;cursor:default}h1{font-size:1.35rem;margin:14px 0 4px}h2{font-size:1.1rem;margin:12px 0 4px}p{margin:0}.muted{color:var(--muted)}.small{font-size:.82rem}.err{color:var(--danger);font-size:.88rem}.app{height:100%;display:flex;flex-direction:column;max-width:720px;margin:0 auto}.screen{flex:1;min-height:0;position:relative}.pane{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column}.pane[hidden]{display:none}.chat,.page{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}.bar{display:flex;align-items:center;gap:10px;padding:calc(10px + var(--safe-t)) 14px 8px;background:var(--bg)}.bar-title{padding:0 4px}.round{flex:none;position:relative;width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:21px;color:var(--text);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}.round:active{background:var(--surface-2)}.round .dot,.nav .dot{width:9px;height:9px;border-radius:50%;background:var(--accent)}.round .dot{position:absolute;top:9px;right:9px;box-shadow:0 0 0 2px var(--surface)}.bar .spacer{flex:1}.pill{margin:0 auto;display:flex;padding:4px;border-radius:999px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}.pill button{padding:8px 18px;border-radius:999px;font-size:.95rem;font-weight:500;color:var(--text);display:inline-flex;align-items:center;gap:6px}.pill button.on{background:var(--surface-2)}.pill .dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}.bar-title{flex:1;min-width:0;display:flex;flex-direction:column}.bar-title strong{font-size:1.05rem}.bar-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-title span{font-size:.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar{flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent-tx);line-height:1}.icon{flex:none;width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:21px;color:var(--muted)}.icon:active{background:var(--surface-2)}.icon.send{background:var(--accent);color:#fff}.icon.rec{background:var(--danger);color:#fff}.drawer-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:var(--scrim);animation:fade .18s ease-out}html:not(.light) .drawer{--bg: var(--ink);--surface: #1a202b;--surface-2: #252d3b;--line: #323c4f;--muted: #98a4ba;--shadow: none}html.light .drawer{--bg: #ffffff;--surface: #f4f6f9;--surface-2: #e9ecf2}.drawer{color:var(--text);position:fixed;z-index:31;top:0;bottom:0;left:0;width:min(84vw,340px);background:var(--bg);display:flex;flex-direction:column;padding:calc(14px + var(--safe-t)) 16px calc(14px + var(--safe-b));border-radius:0 26px 26px 0;box-shadow:8px 0 30px #10141b38;animation:slide .2s ease-out}.drawer-head{display:flex;align-items:center;gap:12px;padding:4px 2px 14px}.drawer-head .who{flex:1;min-width:0;display:flex;flex-direction:column}.drawer-head .who strong{font-size:1.3rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer-head .who span{font-size:.74rem;color:var(--muted)}.nav{display:flex;flex-direction:column}.nav button{display:flex;align-items:center;gap:14px;padding:12px 4px;font-size:1.05rem;text-align:left;border-radius:12px}.nav button:active,.recent button:active{background:var(--surface-2)}.nav button.on{color:var(--accent-tx)}.nav button>i{font-size:24px;width:26px;text-align:center}.nav button>span{flex:1}.nav button>small{color:var(--muted);font-size:.8rem}.drawer hr{border:0;border-top:1px solid var(--line);margin:10px 2px;width:auto}.recent{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;-webkit-overflow-scrolling:touch}.recent .line{display:flex;align-items:center}.recent .line>button:first-child{flex:1;min-width:0;text-align:left;padding:11px 4px;border-radius:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent .line.on>button:first-child{color:var(--accent-tx);font-weight:500}.recent .more{text-align:left;padding:11px 4px;color:var(--muted)}.drawer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}.brand{display:flex;align-items:center;gap:8px;padding:14px 4px 0;color:var(--muted);font-size:.78rem;letter-spacing:.02em}.brand strong{color:var(--text);font-weight:600;letter-spacing:.04em}.logo{flex:none;display:block}.cta{background:var(--accent);color:#fff;border-radius:999px;padding:13px 18px;white-space:nowrap;font-size:.95rem;font-weight:600;display:inline-flex;align-items:center;gap:10px;box-shadow:var(--shadow)}@keyframes slide{0%{transform:translate(-100%)}}@keyframes fade{0%{opacity:0}}.banner{background:var(--accent);color:#fff;padding:calc(8px + var(--safe-t)) 12px 8px;font-size:.85rem;text-align:center}.banner+.screen .bar{padding-top:10px}.thread,.scroll{flex:1;min-height:0;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:10px;-webkit-overflow-scrolling:touch}.empty{margin:auto 0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:12px}.hints{display:flex;flex-direction:column;padding:0 14px 6px}.hints button{display:flex;align-items:center;gap:14px;padding:12px 6px;text-align:left;color:var(--muted);font-size:1rem;border-radius:12px}.hints button:active{background:var(--surface-2)}.hints button>i{font-size:21px;color:var(--accent);flex:none}.hints button>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chip{border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-size:.9rem;color:var(--accent-tx);background:var(--surface)}.msg{max-width:88%;display:flex;flex-direction:column;gap:6px}.msg.user{align-self:flex-end;align-items:flex-end}.msg .text{padding:10px 13px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere}.msg.user .text{background:var(--accent);color:#fff;border-radius:22px;padding:10px 16px}.msg.assistant{max-width:100%}.msg.assistant .text{padding:2px 4px}.msg .text.md{white-space:normal;display:flex;flex-direction:column;gap:9px;min-width:0;max-width:100%}.md>:first-child{margin-top:0}.md p,.md ul,.md ol,.md blockquote,.md pre,.md h3,.md h4,.md h5,.md h6{margin:0}.md a{color:var(--accent-tx);overflow-wrap:anywhere}.md h3,.md h4,.md h5,.md h6{font-weight:650;line-height:1.3;margin-top:6px}.md .md-h1{font-size:1.22rem}.md .md-h2{font-size:1.1rem}.md .md-h3{font-size:1rem}.md .md-h4{font-size:.92rem;color:var(--muted)}.md ul,.md ol{padding-left:1.35em;display:flex;flex-direction:column;gap:4px}.md li>ul,.md li>ol{margin-top:4px}.md li::marker{color:var(--muted)}.md code{font:.86em ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface-2);border-radius:6px;padding:1px 5px;overflow-wrap:anywhere}.md pre.md-code{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;overflow-x:auto;font:.8rem/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;-moz-tab-size:2;tab-size:2}.md pre.md-code code{background:none;padding:0;font:inherit;white-space:pre;overflow-wrap:normal}.md blockquote{border-left:3px solid var(--line);padding:2px 0 2px 12px;color:var(--muted);display:flex;flex-direction:column;gap:6px}.md hr{border:0;border-top:1px solid var(--line);width:100%;margin:4px 0}.md-table{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:12px;-webkit-overflow-scrolling:touch}.md-table table{border-collapse:collapse;width:100%;font-size:.9rem}.md-table th,.md-table td{padding:7px 11px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);white-space:nowrap}.md-table td{white-space:normal;min-width:5.5em}.md-table th{background:var(--surface-2);font-weight:600;font-size:.8rem;color:var(--muted);position:sticky;top:0}.md-table tr:last-child td{border-bottom:0}.md-table tbody tr:hover td{background:color-mix(in srgb,var(--accent) 5%,transparent)}.md a.md-file{white-space:nowrap}.msg-actions{display:flex;gap:2px;margin-top:-3px}.msg-actions button{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);font-size:.95rem}.msg-actions button:hover{background:var(--surface-2);color:var(--text)}@media(hover:hover)and (pointer:fine){.msg.user .msg-actions{opacity:0;transition:opacity .12s}.msg.user:hover .msg-actions,.msg.user .msg-actions:focus-within{opacity:1}}.msg.user.editing{width:100%;max-width:100%;align-items:stretch}.msg.user.editing textarea{width:100%;min-height:64px;max-height:40vh;padding:12px 14px;border-radius:18px;border:1px solid var(--accent);background:var(--surface);outline:none;resize:none;field-sizing:content}.msg.user.editing .duo{justify-content:flex-end}.tools{display:flex;flex-wrap:wrap;gap:5px}.tool{font-size:.72rem;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:3px 9px;display:inline-flex;align-items:center;gap:4px}.tool.ko{color:var(--danger);border-color:var(--danger)}button.tool.go{cursor:pointer;color:var(--accent-tx);border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}.ti-loader-2{animation:turn 1s linear infinite}.dots{display:flex;gap:5px;padding:10px 4px;width:fit-content}.dots i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite}.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}.files{display:flex;flex-wrap:wrap;gap:6px}.files>img{width:96px;height:96px;object-fit:cover;border-radius:10px}.file{font-size:.8rem;display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:10px;background:var(--surface-2);max-width:100%}.file img{width:28px;height:28px;object-fit:cover;border-radius:6px}.file button{color:var(--muted);display:inline-flex;padding:4px}.tray{padding:6px 14px 0;display:flex;flex-direction:column;gap:6px}.composer-wrap{padding:6px 12px calc(10px + var(--safe-b))}.composer{display:flex;align-items:flex-end;gap:2px;padding:5px 6px;border-radius:28px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}.composer:focus-within{border-color:var(--accent)}.composer textarea{flex:1;min-width:0;resize:none;max-height:140px;min-height:42px;padding:10px 6px;border:0;background:transparent;outline:none;field-sizing:content}.composer textarea::placeholder{color:var(--muted)}.composer .icon{color:var(--text)}.composer .icon.send{color:#fff}.composer .icon.send:disabled{background:var(--surface-2);color:var(--muted);opacity:1}.field{width:100%;padding:11px 14px;border-radius:14px;border:1px solid var(--line);background:var(--surface);outline:none}.field:focus{border-color:var(--accent)}textarea.field{resize:vertical}.center-text{text-align:center}.lab{display:flex;flex-direction:column;gap:5px;font-size:.78rem;color:var(--muted);flex:1}.lab.narrow{flex:0 0 84px}.duo{display:flex;gap:10px}.iconpick{display:flex;align-items:center;gap:14px}.iconpick>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.iconpick .ghost{padding:8px 12px;font-size:.88rem}.primary{background:var(--accent);color:#fff;border-radius:999px;padding:12px 16px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.ghost{border:1px solid var(--line);border-radius:999px;background:var(--surface);padding:11px 14px;color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:8px}.ghost.danger{color:var(--danger)}.wide{width:100%}.card{text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:11px 13px;display:flex;flex-direction:column;gap:7px}.card-text{overflow-wrap:anywhere}.tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.72rem;color:var(--muted)}.tags em{font-style:normal;border:1px solid var(--line);border-radius:999px;padding:1px 8px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.empty-line{text-align:center;padding:28px 8px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:13px;display:flex;align-items:center;gap:12px}.panel>div{flex:1;min-width:0}.panel.col{flex-direction:column;align-items:stretch}.seg{display:flex;border:1px solid var(--line);border-radius:12px;padding:3px;gap:3px}.seg button{flex:1;padding:8px 4px;border-radius:9px;font-size:.85rem;color:var(--muted)}.seg button.on{background:var(--accent);color:#fff}.seg.col{flex-direction:column}.seg.col button{text-align:left;padding:9px 12px;display:flex;flex-direction:column;gap:2px;color:var(--text);font-size:.92rem}.seg.col button small{font-size:.76rem;color:var(--muted);line-height:1.35}.seg.col button.on small{color:#ffffffd9}.send-policy{display:flex;flex-direction:column;gap:9px;padding-top:10px;border-top:1px solid var(--line)}.scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:var(--scrim);display:flex;align-items:flex-end;justify-content:center}.sheet{width:100%;max-width:720px;max-height:86%;background:var(--surface);border-radius:26px 26px 0 0;display:flex;flex-direction:column}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:12px 8px 6px 16px}.sheet-body{overflow-y:auto;padding:6px 14px calc(16px + var(--safe-b));display:flex;flex-direction:column;gap:10px}.row{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px}.row.on{border-color:var(--accent)}.row-main{flex:1;min-width:0;text-align:left;padding:10px 12px;display:flex;flex-direction:column}.row-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.row-main span{font-size:.74rem;color:var(--muted)}.center{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px;text-align:center;max-width:420px;margin:0 auto}.foot{font-size:.72rem;color:var(--muted);text-align:center}.spin{width:30px;height:30px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:turn 1s linear infinite}@keyframes turn{to{transform:rotate(360deg)}}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.replies{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}.tray.replies{padding:4px 14px 6px}.replies .chip{background:var(--accent);color:#fff;border-color:transparent}.card[role=button]{cursor:pointer}.thread-title{text-align:center;padding-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.screen-shot{width:100%;aspect-ratio:1280 / 800;border-radius:14px;border:1px solid var(--line);background:var(--surface-2);cursor:crosshair;touch-action:manipulation}.mailbar{width:100%;display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:16px;background:color-mix(in srgb,var(--accent) 14%,var(--surface));border:1px solid var(--accent);color:var(--text);text-align:left}.mailbar span{flex:1;min-width:0}.mailbar i{color:var(--accent-tx);font-size:20px}.mail-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.92rem;max-height:38vh;overflow-y:auto;padding:10px 12px;border-radius:12px;background:var(--surface-2)}.sect{margin:12px 2px 0;font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.card.wait{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface))}details.code{border:1px solid var(--line);border-radius:12px;overflow:hidden}details.code>summary{cursor:pointer;padding:9px 12px;display:flex;align-items:center;gap:8px;font-size:.86rem;list-style:none}details.code>summary::-webkit-details-marker{display:none}details.code>summary small{margin-left:auto;color:var(--muted)}details.code>pre{margin:0;padding:10px 12px;max-height:46vh;overflow:auto;font:.78rem/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface-2);white-space:pre;-moz-tab-size:2;tab-size:2}details.code>:not(summary):not(pre){margin:8px 12px}.run{display:flex;align-items:center;gap:10px;padding:7px 4px;border-bottom:1px solid var(--line);color:var(--muted)}.run-main{flex:1;min-width:0;display:flex;flex-direction:column;color:var(--text)}.run-main .mono{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.run-main small{font-size:.72rem;color:var(--muted)}.row .icon{width:38px;height:38px}.only-wide{display:none}.pill-slot{margin:0 auto}.app.wide{max-width:none}.app.wide .only-wide{display:flex}.app.wide .only-narrow,.app.wide .round.menu{display:none}.desk{flex:1;min-height:0;display:grid;grid-template-columns:292px minmax(0,1fr)}.app.wide.with-work .desk{grid-template-columns:292px minmax(380px,1fr) minmax(420px,46%)}.desk-chat{min-width:0;min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--line)}.app.wide:not(.with-work) .desk-chat>.chat{width:100%;max-width:860px;margin:0 auto}.desk-chat[hidden],.work[hidden]{display:none}.desk-page{min-width:0;min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--line);grid-column:2 / -1}.desk-page>.page,.desk-page>.chat{width:100%;max-width:860px;margin:0 auto}.desk-page .bar{padding-top:14px}.app.wide .round.back{display:inline-flex}.drawer.docked{position:static;width:auto;border-radius:0;box-shadow:none;animation:none;z-index:auto;padding-top:16px}.work{min-width:0;min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--line);background:var(--surface)}.work-tabs{display:flex;align-items:center;gap:4px;padding:8px 8px 0;border-bottom:1px solid var(--line);overflow-x:auto}.work-tabs .spacer{flex:1}.work-tab{display:flex;align-items:center;border:1px solid transparent;border-bottom:0;border-radius:10px 10px 0 0;color:var(--muted);max-width:190px}.work-tab.on{background:var(--bg);border-color:var(--line);color:var(--text);margin-bottom:-1px}.work-tab>button:first-child{display:flex;align-items:center;gap:7px;padding:8px 4px 8px 10px;min-width:0;font-size:.86rem}.work-tab>button:first-child span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.work-tab .x{padding:6px 8px 6px 2px;font-size:14px;opacity:.6}.work-tab .x:hover{opacity:1}.work-out{padding:8px;color:var(--muted);font-size:18px}.work-body{flex:1;min-height:0;position:relative;background:var(--bg)}.work-pane{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column}.work-pane[hidden]{display:none}.work-pane iframe{flex:1;width:100%;border:0;background:#fff}.work-pane .bar{padding-top:10px}
