
:root{--ink:#171717;--muted:#666;--line:#e7e7e7;--nav:#f9f9f9;--surface:#fff;--soft:#f4f4f4}*{box-sizing:border-box}html,body{min-height:100%;margin:0;background:#fff}body{color:var(--ink);font:15px/1.6 "Microsoft YaHei UI","Segoe UI",sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #555;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.5}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{min-height:100vh;display:grid;grid-template-columns:260px minmax(0,1fr)}
.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:var(--nav);color:var(--ink);padding:16px 12px 18px;min-width:0}.sidebar-top{display:flex;align-items:center;justify-content:space-between;padding:0 5px 23px}.brand{color:#171717;text-decoration:none;display:flex;align-items:center;gap:11px;font-size:17px;font-weight:700;min-height:40px}.brand-mark{width:30px;height:30px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:2px;flex:none;transform:rotate(-4deg)}.brand-mark i{display:block;border:1px solid #171717}.brand-mark i:nth-child(1){background:#ffc629;border-radius:50% 0 0 0}.brand-mark i:nth-child(2){background:#c8baff;border-radius:0 50% 0 0}.brand-mark i:nth-child(3){background:#ff8a7d;border-radius:0 0 0 50%}.brand-mark i:nth-child(4){background:#5954f5;border-radius:0 0 50% 0}.sidebar-new{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:8px;background:transparent;color:#222;text-align:left;padding:9px 11px;min-height:44px}.sidebar-new:hover,.history button:hover,.lookup summary:hover{background:#ececec}.new-icon{font-size:21px;font-weight:300;line-height:1}.sidebar-section{margin:26px 11px 8px;color:#666;font-size:12px;font-weight:600}.history{overflow:auto;max-height:44vh;display:flex;flex-direction:column;gap:2px}.history button{width:100%;background:transparent;border:0;border-radius:8px;text-align:left;padding:10px 11px;color:#292929;overflow-wrap:anywhere;font-size:14px}.history button.active{background:#e9e9e9}.history .subtle{color:#666;padding:0 11px}.lookup{margin:18px 1px 0}.lookup summary{list-style:none;cursor:pointer;border-radius:8px;padding:10px 11px;font-size:14px}.lookup summary::-webkit-details-marker{display:none}.lookup-row{display:flex;border:1px solid #d3d3d3;border-radius:9px;background:#fff;overflow:hidden;margin:4px 9px}.lookup-row input{min-width:0;flex:1;width:100%;border:0;background:transparent;color:#171717;padding:10px;font-size:13px}.lookup-row input::placeholder{color:#666}.lookup-row button{border:0;background:transparent;color:#333;padding:0 12px}.sidebar-bottom{margin:auto 11px 0;padding-top:24px;color:#666;font-size:12px;line-height:1.6}.main-shell,.main{min-width:0}.main-shell{display:flex;flex-direction:column;min-height:100vh;background:#fff}.topbar{height:64px;flex:none;padding:0 26px;display:flex;align-items:center;justify-content:space-between;gap:15px}.top-location{display:flex;align-items:center;gap:10px;font-size:16px;color:#444;min-width:0}.top-location strong{color:#333;font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:360px}.top-actions{display:flex;align-items:center;gap:10px}.connection{font-size:12px;color:#666;border:0;background:transparent;padding:9px}.connection:before{content:"";display:inline-block;border-radius:50%;width:6px;height:6px;background:#aa8b58;margin-right:7px}.connection.online:before{background:#57a082}.connection.offline:before{background:#c77a70}.result-toggle{border:1px solid #dedede;border-radius:18px;background:#fff;color:#333;padding:7px 13px;font-size:13px}.result-toggle:hover{background:#f5f5f5}.icon-button{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#444;font-size:22px}.icon-button:hover{background:#efefef}.mobile-menu,.mobile-sidebar-close{display:none}.main{flex:1;min-height:0;position:relative}.start-area{min-height:calc(100vh - 64px);display:flex;justify-content:center;align-items:center;padding:28px 26px 110px}.start-content{width:min(100%,760px)}.welcome{text-align:center;margin:0 0 28px}.welcome h1{font-size:29px;line-height:1.35;font-weight:600;letter-spacing:-.02em;margin:0}.create-form{background:#f4f4f4;border:1px solid transparent;border-radius:26px;padding:15px 16px 13px;box-shadow:0 1px 2px #0000000d}.create-form:focus-within{background:#f1f1f1}.create-form textarea{width:100%;min-height:58px;max-height:250px;resize:none;border:0;outline:0;background:transparent;color:#171717;padding:3px 5px;font-size:16px;line-height:1.6}.create-form textarea::placeholder{color:#666}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px}.file-control{display:flex;align-items:center;gap:8px;min-width:0;position:relative}.file-control input{position:absolute;width:1px;height:1px;opacity:0}.file-button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:#333;cursor:pointer;font-size:23px;line-height:1}.file-button:hover{background:#e4e4e4}.file-control:focus-within .file-button{outline:2px solid #555;outline-offset:2px}#file-name{color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px;font-size:12px}.send-button{width:36px;height:36px;min-height:36px;border:0;border-radius:50%;background:#171717;color:#fff;display:grid;place-items:center;font-size:23px;font-weight:500;line-height:1;padding:0}.send-button:hover{background:#444}.composer-caption{text-align:center;font-size:12px;color:#666;margin:14px 4px 0}.task-area{min-height:calc(100vh - 64px);padding-bottom:32px}.task-heading{max-width:1360px;margin:0 auto;padding:15px 32px 8px;display:flex;justify-content:space-between;align-items:center;gap:20px}.task-heading h1{font-size:14px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;margin:0}.task-heading p{font-size:12px;color:#666;margin:3px 0 0}.status{font-size:12px;color:#555;background:#f1f1f1;border-radius:20px;padding:5px 10px;white-space:nowrap}.workspace{max-width:1360px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,43%);gap:0;padding:10px 24px}.workspace.result-collapsed{grid-template-columns:minmax(0,1fr)}.chatstream{width:100%;max-width:760px;margin:0 auto;min-height:460px;padding:24px 22px;display:flex;flex-direction:column;gap:30px}.chat-message{display:flex;gap:12px}.user-message{display:block;align-self:flex-end;max-width:85%}.user-bubble{padding:12px 18px;background:#f4f4f4;border-radius:22px;color:#171717;overflow-wrap:anywhere;white-space:pre-wrap}.assistant-avatar{display:grid;place-items:center;width:30px;height:30px;border:1px solid #e6e6e6;border-radius:50%;background:#fff;flex:none}.brand-mark-small{width:17px;height:17px;gap:1px}.brand-mark-small i{border-width:.6px}.assistant-body{max-width:690px;min-width:0;flex:1}.assistant-name{font-size:14px;font-weight:700;color:#171717;margin:3px 0 8px}.assistant-body>p{color:#292929;margin:0 0 18px;line-height:1.8}.assistant-note{display:flex;gap:10px;align-items:center;text-align:left;width:min(100%,390px);padding:13px;border:1px solid #e5e5e5;background:#fff;color:#333;border-radius:12px}.assistant-note:hover{background:#f8f8f8}.assistant-note>span:first-child{display:grid;place-items:center;background:#f1f1f1;color:#555;width:34px;height:34px;border-radius:8px;font-size:17px;flex:none}.assistant-note strong,.assistant-note small{display:block}.assistant-note strong{font-size:13px;font-weight:600}.assistant-note small{font-size:12px;color:#666}.note-arrow{margin-left:auto;font-size:22px;color:#666}.result-rail{background:#fff;border:1px solid #e7e7e7;border-radius:14px;overflow:hidden;min-width:0;align-self:start}.result-heading{padding:15px 19px;display:flex;justify-content:space-between;align-items:center}.result-heading strong{font-size:15px;font-weight:600}.stages{display:flex;overflow-x:auto;border-bottom:1px solid #ededed;padding:0 10px;gap:2px}.stages button{background:transparent;border:0;border-bottom:2px solid transparent;color:#666;min-height:45px;padding:0 11px;font-weight:500;white-space:nowrap;font-size:13px}.stages button.active{color:#171717;border-bottom-color:#171717}.workspace-main{padding:22px;min-width:0}.eyebrow{font-size:12px;font-weight:600;color:#666}.workspace-main h2{font-size:19px;line-height:1.4;letter-spacing:-.02em;margin:8px 0}.workspace-main h3{font-size:14px;margin:24px 0 9px}.workspace-main p,.workspace-main li{overflow-wrap:anywhere}.workspace-main a{color:#3165b0;overflow-wrap:anywhere}.workspace-main ul{padding-left:20px}.workspace-main li{margin:8px 0}.summary{font-size:14px;color:#555}.section-rule{border:0;border-top:1px solid #ededed;margin:21px 0}.record{padding:13px 0;border-bottom:1px solid #ededed}.record-title{font-weight:600;overflow-wrap:anywhere}.record-meta{font-size:12px;color:#666;margin-top:4px}.quote{padding:12px;background:#f7f7f7;border-radius:8px;font-size:13px;color:#555;margin-top:8px;white-space:pre-wrap}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.primary,.secondary,.danger{min-height:42px;border-radius:9px;padding:9px 14px;font-weight:600}.primary{border:1px solid #171717;background:#171717;color:#fff}.primary:hover{background:#444}.secondary{background:#fff;border:1px solid #d4d4d4;color:#222}.secondary:hover{background:#f5f5f5}.danger{background:#fff;border:1px solid #e0b5b0;color:#9d352b}.context{padding:18px 22px;border-top:1px solid #ededed;background:#fafafa}.context h3{margin:0 0 8px;font-size:13px}.context-block{padding:10px 0;border-bottom:1px solid #ededed}.context-block b{display:block;font-size:12px}.context-block span{font-size:12px;color:#666;overflow-wrap:anywhere}.warning,.notice,.error-banner{background:#fff4f2;border:1px solid #edc8c3;border-radius:9px;padding:12px 14px;color:#82362d;white-space:pre-wrap;overflow-wrap:anywhere}.notice{max-width:1295px;margin:8px auto 16px}.error-banner{max-width:760px;margin:16px auto}.empty{padding:14px 0;color:#666}.edit-label{display:block;font-weight:600;font-size:12px;margin-bottom:9px}.strategy-editor,#extra-name{width:100%;border:1px solid #d0d0d0;background:#fff;color:#171717;padding:12px;border-radius:9px}.strategy-editor{min-height:260px;resize:vertical;line-height:1.7}.report-body{font:14px/1.8 "Microsoft YaHei UI",sans-serif;overflow-wrap:anywhere}.workspace-main a.primary{color:#fff;text-decoration:none}.report-body h3{font-size:19px;margin:28px 0 12px}.report-body h4{font-size:15px;margin:22px 0 9px}.report-body h5{font-size:14px;margin:18px 0 7px}.report-body p{white-space:pre-wrap;margin:8px 0}.report-item{padding:4px 0 4px 16px;position:relative;white-space:pre-wrap}.report-item:before{content:"•";position:absolute;left:0;color:#666}.report-body blockquote{margin:6px 0 8px 16px;padding-left:12px;border-left:2px solid #ddd;color:#666;white-space:pre-wrap}.subtle{font-size:12px;color:#666}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) minmax(320px,45%)}.chatstream{padding:20px 12px}.task-heading{padding-left:24px;padding-right:24px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;left:0;top:0;width:min(280px,85vw);height:100vh;z-index:20;visibility:hidden;transform:translateX(-105%);transition:transform .18s ease;border-right:1px solid #e5e5e5;box-shadow:0 0 30px #00000012}.sidebar-open .sidebar{visibility:visible;transform:translateX(0)}.mobile-menu,.mobile-sidebar-close{display:grid}.topbar{height:60px;padding:0 14px}.top-location{gap:4px}.top-location strong{max-width:115px}.top-actions{gap:3px}.connection{font-size:12px;padding:7px 4px}.result-toggle{padding:7px 9px;font-size:12px}.start-area{min-height:calc(100vh - 60px);padding:24px 17px 70px}.welcome h1{font-size:23px}.create-form{padding:13px 13px 11px;border-radius:22px}.create-form textarea{font-size:16px;min-height:65px}.composer-caption{font-size:12px}.task-heading{padding:15px 17px 5px}.workspace{display:block;padding:0 16px}.chatstream{min-height:0;padding:20px 0 26px}.result-rail{margin:0 0 20px}.workspace-main,.context{padding:18px}.notice,.error-banner{margin:14px 16px}.assistant-body>p,.workspace-main p,.workspace-main li{font-size:16px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

.history-item{display:flex;align-items:center;border-radius:8px;min-width:0}.history-item:hover,.history-item.active{background:#e9e9e9}.history .history-open{flex:1;min-width:0;width:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history .history-delete{display:grid;place-items:center;flex:none;width:34px;height:34px;margin-right:4px;padding:0;color:#777;border-radius:7px}.history .history-delete:hover{color:#ad3127;background:#dedede}.history-delete svg{pointer-events:none}.task-heading{justify-content:flex-end}.context .actions{margin-top:0}#conversation-messages{display:flex;flex-direction:column;gap:20px;min-width:0}.conversation-entry{display:flex;gap:12px}.conversation-entry.user{justify-content:flex-end}.conversation-entry .user-bubble{max-width:85%}.conversation-entry .assistant-body{padding-top:3px}.chat-composer{margin-top:auto;width:100%}.chat-composer textarea{min-height:58px}.chat-composer .composer-bottom{padding-top:0}@media(min-width:761px) and (max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr)}.chatstream{min-height:0}.result-rail{margin-top:12px}}@media(max-width:760px){.task-heading{flex-wrap:wrap;min-width:0}.chatstream{min-height:0}.chat-composer{margin-top:12px}}

.chat-composer .send-button{margin-left:auto}.chat-wait{font-size:12px;color:#666}.conversation-entry .assistant-body p{margin:0;white-space:pre-wrap}.send-button:disabled{background:#bbb;color:#fff;opacity:1}
