:root{--ink:#203731;--muted:#64766e;--green:#23644f;--deep:#173b35;--mint:#e9f3ed;--paper:#f5f7f5;--line:#dce4de;--white:#fff;--amber:#865b12;--amber-bg:#fff5df;--red:#a43c3c;--radius:12px;font-family:"Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;color:var(--ink);background:var(--paper);font-size:14px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit;border-radius:7px;min-height:40px;padding:8px 13px;font-weight:600}button:hover{background:#edf1ed}button:disabled{cursor:wait;opacity:.55}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #679e8b;outline-offset:3px}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:7px;padding:10px 12px;background:#fff;color:var(--ink)}textarea{resize:vertical;line-height:1.8}label{display:block;font-weight:600;font-size:13px}label input,label textarea,label select{display:block;margin-top:7px}h1,h2,h3,p{margin-top:0}h1{font-size:25px;letter-spacing:-.8px;margin-bottom:7px;font-weight:650}h2{font-size:20px;letter-spacing:-.4px;margin-bottom:8px}h3{font-size:15px;margin-bottom:8px}small,.small{font-size:12px}p{line-height:1.8}.muted{color:var(--muted)}.eyebrow{font-size:12px;color:var(--muted)}.primary{background:var(--green);color:#fff}.primary:hover{background:#194d3b}.secondary{border:1px solid var(--line);background:white}.danger{color:var(--red)}.skip{position:absolute;left:16px;top:-90px;background:white;padding:12px;z-index:99}.skip:focus{top:10px}
.topbar{height:84px;display:flex;align-items:center;gap:45px;padding:0 32px;background:var(--white);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:23px;font-weight:700;letter-spacing:-.7px;white-space:nowrap}.brand small{display:block;font-size:11px;letter-spacing:1.3px;font-weight:400;color:var(--muted)}.brandmark{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:center;background:var(--deep);color:#fff;width:43px;height:43px;border-radius:12px;font-size:26px;font-weight:500;letter-spacing:-3px;padding-right:3px}.brandmark span{color:#a8dbbe}.topbar nav{display:flex;gap:8px;height:100%;align-items:center}.topbar nav button{height:100%;border-radius:0;position:relative;font-size:14px;color:var(--muted);padding:0 15px;white-space:nowrap}.topbar nav button:hover{background:#f8faf8}.topbar nav button.active{color:var(--green)}.topbar nav button.active:after{content:"";position:absolute;bottom:0;height:3px;background:var(--green);left:15px;right:15px}.owner{display:flex;gap:9px;align-items:center;margin-left:auto;font-size:12px;white-space:nowrap}.owner-avatar{display:grid;place-items:center;width:30px;height:30px;background:#eef1eb;border-radius:50%;font-size:10px;font-weight:700}.environment{padding:8px 32px;background:#eaf1ec;display:flex;gap:17px;align-items:center;color:#456052;font-size:12px;border-bottom:1px solid #d8e5da;min-height:41px}.environment>span:first-child{font-weight:700;display:flex;align-items:center;gap:7px;white-space:nowrap}.environment i{width:6px;height:6px;background:#4c7b5c;border-radius:50%;display:inline-block}.environment button{font-size:12px;padding:0 4px;min-height:24px;margin-left:auto;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.workspace-head{display:flex;justify-content:space-between;align-items:center;padding:24px 32px 19px}.workspace-head p{margin:0;color:var(--muted);font-size:13px}.pulse{border-left:1px solid var(--line);padding-left:20px;display:flex;align-items:center;gap:10px}.pulse strong{font-size:25px;font-weight:500;line-height:1}.pulse span{font-size:12px;color:var(--muted)}.inbox-grid{display:grid;grid-template-columns:280px minmax(360px,1fr) 310px;margin:0 32px 28px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;min-height:610px;height:calc(100vh - 270px);overflow:hidden}.conversation-list{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;background:#fafcf9}.list-head{padding:19px 18px 12px}.list-head .search{font-size:12px;background:#fff}.list-filter{display:flex;gap:5px;margin-top:13px}.list-filter button{font-size:12px;min-height:28px;padding:3px 10px}.list-filter .active{background:#e0ece3;color:var(--green)}.list-body{overflow:auto}.conversation{display:block;width:100%;text-align:left;border-radius:0;padding:17px 18px;border-left:3px solid transparent;min-height:110px;border-bottom:1px solid #ecf0eb;font-weight:400}.conversation.active{background:#eaf2eb;border-left-color:var(--green)}.conversation:hover{background:#eef4ec}.conversation-top{display:flex;justify-content:space-between;align-items:center;gap:5px}.conversation-title{font-weight:600;font-size:13px}.conversation p{font-size:12px;color:var(--muted);margin:7px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7}.conversation-foot{display:flex;justify-content:space-between;align-items:center}.channel-label{font-size:10px;color:#687d70}.badge{display:inline-block;padding:2px 7px;font-size:11px;background:var(--mint);color:var(--green);border-radius:4px;white-space:nowrap;font-weight:500}.badge.amber{background:var(--amber-bg);color:var(--amber)}.badge.gray{background:#edf0ee;color:#64716a}.badge.red{background:#f9eaea;color:var(--red)}
.chat{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.chat-head h2{font-size:16px;margin:0}.chat-head p{font-size:11px;color:var(--muted);margin:2px 0 0}.chat-head button{margin-left:auto;font-size:12px;white-space:nowrap}.avatar{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;background:#edf0e5;color:#5d704a;font-weight:600;flex-shrink:0}.message-list{flex:1;overflow:auto;padding:22px;background:#fff;min-height:160px}.timeline-caption{text-align:center;font-size:11px;color:#88998e;margin-bottom:24px}.message{margin-bottom:22px;max-width:91%}.message.mine{margin-left:auto}.message-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);margin-bottom:7px}.mine .message-meta{justify-content:flex-end}.bubble{padding:12px 15px;border:1px solid #e6eae4;background:#f5f7f3;white-space:pre-wrap;line-height:1.9;font-size:13px;border-radius:0 12px 12px 12px;overflow-wrap:anywhere}.mine .bubble{background:#edf5ef;border-color:#dcebe0;border-radius:12px 0 12px 12px}.message.draft .bubble{background:#fcfcf7;border:1px dashed #bdcbb3}.message.failed .bubble{border-color:#dcbaba}.message.cancelled .bubble{color:var(--muted);font-size:12px;background:#f8f9f7}.message-tools{display:flex;gap:7px;justify-content:flex-end;margin-top:6px}.message-tools button{min-height:28px;font-size:11px;padding:3px 7px}.draft-note{font-size:11px;color:var(--amber);margin-top:5px;text-align:right}.composer{padding:14px 20px 17px;border-top:1px solid var(--line);background:#fcfdfb}.composer-tabs{display:flex;gap:14px;margin-bottom:8px}.composer-tabs button{min-height:27px;font-size:12px;padding:0 0 5px;color:var(--muted);border-radius:0}.composer-tabs button.active{color:var(--green);border-bottom:2px solid var(--green)}.composer textarea{border:0;background:transparent;padding:2px 0;min-height:66px;max-height:130px;font-size:13px;resize:vertical}.composer textarea:focus{outline-offset:0}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.composer-bottom span,.composer-bottom label{font-size:11px;color:var(--muted);font-weight:400}.composer-bottom label{display:flex;gap:6px;align-items:center}.composer-bottom input[type=checkbox]{width:auto;margin:0}.composer-bottom button{font-size:12px;min-height:34px;white-space:nowrap}
.evidence{background:#f8faf7;border-left:1px solid var(--line);overflow:auto;padding:21px 19px}.evidence h3{font-size:14px}.mode-options{display:flex;background:#e9eee7;border-radius:7px;padding:3px;gap:2px;margin:13px 0 10px}.mode-options button{flex:1;font-size:11px;min-height:30px;padding:5px 3px}.mode-options button.active{background:white;box-shadow:0 1px 4px #253b3012}.mode-copy{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:22px}.evidence-block{padding:18px 0;border-top:1px solid var(--line)}.evidence-title{display:flex;align-items:center;justify-content:space-between}.evidence-title h3{margin:0}.source{margin-top:13px;border-left:2px solid #91b79b;padding-left:11px}.source strong{font-size:12px;font-weight:600}.source p{font-size:12px;color:var(--muted);margin:4px 0 0}.empty-evidence{font-size:12px;color:var(--muted);padding:13px 0}.steps{list-style:none;padding:0;margin:15px 0 0;counter-reset:steps}.steps li{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:var(--muted);margin-bottom:14px}.steps li:before{counter-increment:steps;content:counter(steps);width:19px;height:19px;border:1px solid #cedacc;border-radius:50%;font-size:10px;display:grid;place-items:center;flex-shrink:0;color:#62816b}.steps strong{color:var(--ink);display:block;font-weight:500}.handoff-note{padding:13px;background:var(--amber-bg);border-left:3px solid #c1a26b;font-size:12px;color:var(--amber);margin-bottom:20px}
.page{max-width:1180px;margin:0 auto;padding:31px 32px 50px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading p{color:var(--muted);font-size:13px;margin:0}.section-intro{border-left:3px solid #92b19a;padding:8px 16px;margin-bottom:24px;color:var(--muted);font-size:13px}.knowledge-list{border-top:1px solid var(--line)}.knowledge-row{display:grid;grid-template-columns:1fr 160px 70px;gap:22px;padding:23px 0;border-bottom:1px solid var(--line);align-items:center}.knowledge-row h3{margin:0 0 5px;font-size:15px}.knowledge-row p{font-size:13px;color:var(--muted);margin:0;max-width:740px;white-space:pre-wrap;overflow-wrap:anywhere}.knowledge-row .origin{font-size:11px;margin-top:8px;color:#7d8c80}.knowledge-row .source-state{font-size:11px;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px}.settings-form{background:white;border:1px solid var(--line);padding:24px;border-radius:12px}.settings-form label{margin-bottom:18px}.channel-row{padding:18px 0;border-bottom:1px solid var(--line)}.channel-row h3{display:flex;justify-content:space-between;gap:8px}.channel-row p{font-size:13px;color:var(--muted);margin:6px 0}.guide{font-size:12px;color:var(--muted);line-height:1.9;padding:18px 0}.guide code{background:#e9eee7;padding:2px 4px;border-radius:3px;font-size:11px}.report-band{background:var(--deep);color:white;display:flex;align-items:center;justify-content:space-around;padding:27px;border-radius:12px;margin-bottom:32px;gap:18px}.report-metric strong{font-size:32px;font-weight:500;display:block;line-height:1.25}.report-metric span{font-size:12px;color:#bdd6c7}.report-columns{display:grid;grid-template-columns:1fr 1fr;gap:44px}.followup{display:block;width:100%;text-align:left;padding:17px 0;border-radius:0;border-bottom:1px solid var(--line);font-weight:400}.followup strong{font-size:14px}.followup p{font-size:12px;color:var(--muted);margin:4px 0}.topic{padding:13px 0;border-bottom:1px solid var(--line)}.topic span{font-size:11px;color:var(--muted)}.topic p{font-size:13px;margin:4px 0;overflow-wrap:anywhere}.events{font-size:12px;margin-top:30px}.event{display:flex;gap:15px;padding:10px 0;border-bottom:1px solid var(--line)}.event time{color:var(--muted);white-space:nowrap}.loading,.empty{padding:50px;text-align:center;color:var(--muted)}.mobile-back{display:none}
dialog{border:1px solid var(--line);border-radius:14px;padding:28px;width:min(600px,calc(100% - 28px));color:var(--ink);max-height:90vh;overflow:auto;box-shadow:0 16px 70px #1d3b3025}dialog::backdrop{background:#172f285b}dialog label{margin:17px 0}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start}.dialog-head button{font-size:25px;line-height:1}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:11px 21px;background:var(--deep);color:white;border-radius:9px;box-shadow:0 3px 15px #0002;max-width:calc(100% - 32px);opacity:0;pointer-events:none;transition:opacity .15s;z-index:100;font-size:13px}#toast.visible{opacity:1}#pending-count:not(:empty){font-size:10px;margin-left:5px;padding:1px 5px;border-radius:5px;background:var(--amber-bg);color:var(--amber)}
@media(min-width:1600px){.inbox-grid{grid-template-columns:310px minmax(400px,1fr) 340px}.message{max-width:78%}.topbar{padding:0 48px}.workspace-head{padding-left:48px;padding-right:48px}.inbox-grid{margin-left:48px;margin-right:48px}.environment{padding-left:48px;padding-right:48px}}
@media(max-width:1150px){.topbar{gap:20px;padding:0 20px}.topbar nav{gap:0}.owner #business-label{display:none}.inbox-grid{grid-template-columns:240px minmax(310px,1fr);margin-left:20px;margin-right:20px}.evidence{grid-column:1/-1;max-height:330px;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:20px}.inbox-grid{height:auto;min-height:0}.conversation-list,.chat{height:650px}.evidence .evidence-block{padding:0;border:0}.evidence .steps-block{display:none}.workspace-head{padding-left:20px;padding-right:20px}}
@media(max-width:700px){.topbar{height:auto;flex-wrap:wrap;gap:0;padding:15px 16px 0}.brand{font-size:21px}.brandmark{width:37px;height:37px}.owner{margin-left:auto}.topbar nav{order:3;overflow:auto;width:100%;height:50px;margin-top:10px;justify-content:space-between}.topbar nav button{font-size:12px;padding:0 7px}.topbar nav button.active:after{left:7px;right:7px}.environment{padding:8px 16px;gap:9px;align-items:flex-start;flex-wrap:wrap}.environment #env-detail{flex:1;font-size:11px}.environment button{display:none}.workspace-head{padding:21px 16px 16px}.workspace-head h1{font-size:21px}.workspace-head p{font-size:11px}.pulse{padding-left:12px;gap:6px}.pulse strong{font-size:23px}.pulse span{font-size:10px}.inbox-grid{margin:0 12px 20px;display:block}.conversation-list{height:auto;min-height:430px;border-right:0}.conversation{min-height:107px}.chat{height:650px}.inbox-grid:not(.mobile-chat) .chat,.inbox-grid:not(.mobile-chat) .evidence{display:none}.inbox-grid.mobile-chat .conversation-list{display:none}.mobile-back{display:inline-block;min-height:35px;padding:4px 8px;margin:0!important}.chat-head{padding:14px 12px;gap:8px}.chat-head .avatar{display:none}.chat-head h2{font-size:14px}.chat-head button{font-size:11px}.message-list{padding:17px 14px}.message{max-width:96%}.composer{padding:12px 14px}.evidence{display:block;max-height:none;padding:20px}.evidence .evidence-block{padding:18px 0;border-top:1px solid var(--line)}.page{padding:24px 17px 40px}.page-heading{gap:12px;align-items:flex-start}.page-heading h1{font-size:21px}.page-heading p{font-size:12px}.page-heading button{font-size:12px;white-space:nowrap}.knowledge-row{grid-template-columns:1fr auto;gap:12px;padding:20px 0}.knowledge-row .source-state{grid-row:2}.knowledge-row>button{grid-column:2;grid-row:1}.settings-grid,.report-columns{grid-template-columns:1fr;gap:25px}.settings-form{padding:18px}.report-band{display:grid;grid-template-columns:1fr 1fr;padding:24px;gap:25px}.report-metric strong{font-size:27px}.loading,.empty{padding:30px 18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.bubble{font-size:14px}.message-tools button[data-approve]{background:var(--green);color:white;min-height:35px;padding:6px 12px;font-size:12px}.message-tools button[data-approve]:hover{background:#194d3b}.message-meta{font-size:12px}.source p{font-size:13px}.conversation p{font-size:13px}
@media(max-width:700px){main:has(.mobile-chat) .workspace-head{display:none}.inbox-grid.mobile-chat{margin-top:12px}.mobile-chat .chat{height:calc(100dvh - 211px);min-height:450px}.composer-tabs{gap:12px}.composer-tabs button{min-height:35px}.mode-options button{min-height:40px}.message-tools button{min-height:40px}.mobile-back{min-height:40px}}
.trace{margin-top:6px;font-size:12px;color:var(--muted);background:var(--mint);border-radius:6px;padding:4px 8px;line-height:1.6}.message.mine .trace{text-align:left}
.pre{white-space:pre-wrap}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-row label{margin-bottom:0}
.sim-options{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.sim-options label{display:flex;gap:6px;align-items:center;font-weight:500}.sim-options input[type=checkbox]{width:auto;margin:0}.sim-options #sender-name{width:120px;margin:0;padding:4px 8px}
.job{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}.job .small{color:var(--muted);word-break:break-all}
@media (max-width:640px){.field-row{grid-template-columns:1fr}.job{grid-template-columns:1fr auto}.job .small{grid-column:1/-1}}
.environment.alert{background:var(--amber-bg);color:var(--amber);font-weight:600}
.heading-actions{display:flex;gap:10px;flex-wrap:wrap}.imports{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:14px 18px;margin-bottom:18px}.import-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.import-row p{margin:4px 0 0}.import-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:640px){.import-row{flex-direction:column;align-items:flex-start}}
