:root{color:#141414;background:#f7f7f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}html,body,#root{width:100%;height:100%}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select,textarea{font:inherit}button{min-height:34px;border:1px solid #1b1b1b;border-radius:6px;background:#1b1b1b;color:#fff;padding:0 14px;cursor:pointer}button:disabled{cursor:default;opacity:.45}button.ghost,nav button{background:transparent;color:#1b1b1b}button.active{background:#1b1b1b;color:#fff}button.is-loading{display:inline-flex;align-items:center;justify-content:center;gap:8px}button.is-loading:after{content:"";width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}input,select,textarea{min-height:36px;border:1px solid #d3d3cf;border-radius:6px;background:#fff;color:#141414;padding:0 10px}textarea{min-height:160px;padding:10px;resize:vertical}.auth{min-height:100vh;display:grid;place-items:center;padding:24px}.auth form{width:min(360px,100%);display:grid;gap:14px}h1{margin:0;font-size:20px;font-weight:650}label{display:grid;gap:6px;font-size:13px}.shell{height:100vh;min-height:0;display:grid;grid-template-columns:188px minmax(0,1fr);overflow:hidden}aside{border-right:1px solid #deded9;padding:18px;display:grid;grid-template-rows:auto 1fr auto;gap:24px;background:#f1f1ee;min-height:0;overflow:auto}.brand{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:700}.brand img,.auth-brand img{width:32px;height:32px;flex:0 0 32px;border-radius:6px;object-fit:contain}.auth-brand{display:grid;align-items:center;justify-items:center;gap:12px}.auth-brand img{width:88px;height:88px;flex-basis:88px}nav{display:grid;align-content:start;gap:8px}nav button{width:100%;text-align:left}section{min-width:0;min-height:0;height:100vh;display:flex;flex-direction:column;padding:18px;overflow:hidden}header{height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #deded9;margin-bottom:16px}header span{color:#666;font-size:13px}table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff;border:1px solid #deded9}.page-body{flex:1 1 auto;min-height:0;min-width:0;overflow:auto}.page-stack{height:100%;min-height:0;min-width:0;display:flex;flex-direction:column;gap:10px}.table-scroll{flex:1 1 auto;min-height:0;min-width:0;overflow:auto}.table-scroll th{position:sticky;top:0;z-index:1}.clickable-row{cursor:pointer}.clickable-row:hover,.clickable-row:focus{background:#f3f3ee;outline:none}.logs-table th:nth-child(1),.logs-table td:nth-child(1){width:88px}.logs-table th:nth-child(3),.logs-table td:nth-child(3){width:120px}.logs-table th:nth-child(4),.logs-table td:nth-child(4){width:160px}.logs-table th:nth-child(5),.logs-table td:nth-child(5){width:112px}.conversation-toolbar{min-height:42px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.conversation-toolbar span{color:#555;font-size:13px}.status-badge{min-height:24px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;padding:0 8px;font-size:12px;font-weight:650;line-height:1;white-space:nowrap}.conversation-toolbar .status-badge{color:inherit;font-size:12px}.status-badge.success{border-color:#b9d7c8;background:#e8f4ee;color:#27634d}.status-badge.info{border-color:#bfd2df;background:#e8f0f5;color:#315a7a}.status-badge.warn{border-color:#dfd0a5;background:#f7f1df;color:#776433}.status-badge.danger{border-color:#dcb4ad;background:#f6e7e5;color:#9f2d20}.status-badge.muted{border-color:#d6d6d0;background:#eeeeea;color:#555}.auto-reply-button{border-color:#595959;background:#595959}.auto-reply-button.active{border-color:#27634d;background:#27634d}.voice-reply-button{border-color:#595959;background:#595959}.voice-reply-button.active{border-color:#315a7a;background:#315a7a}.scan-button{border-color:#1f5e73;background:#1f5e73}.stop-scan-button{border-color:#8a342b;background:#8a342b}.stop-runtime-button{border-color:#9f2d20;background:#9f2d20}.conversations-table .col-platform{width:54px}.conversations-table .col-company,.conversations-table .col-sender{width:8%}.conversations-table .col-count{width:48px}.conversations-table .col-type{width:56px}.conversations-table .col-message-time,.conversations-table .col-reply-time{width:92px}.conversations-table .col-message,.conversations-table .col-draft{width:15%}.conversations-table .col-confidence{width:62px}.conversations-table .col-status{width:76px}.conversations-table tbody tr{cursor:pointer}.conversations-table tbody tr:focus,.conversations-table tbody tr:hover{background:#f8f8f4;outline:0}.sender-cell{display:inline-flex;align-items:center;gap:7px}.time-cell{color:#555;font-size:12px;white-space:normal}.new-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#c83224}.platform-icon{width:28px;height:28px;display:inline-grid;place-items:center;border-radius:8px;color:#fff;vertical-align:middle}.platform-icon svg{width:22px;height:22px;display:block}.platform-icon.wechat{background:#19b35b}.platform-icon.wechat svg{fill:#fff}.platform-icon.wechat circle:nth-of-type(n+3){fill:#19b35b}.platform-icon.rednote{background:#e22d38}.platform-icon.rednote rect{fill:currentColor}.platform-icon.rednote path{fill:none;stroke:#e22d38;stroke-width:2;stroke-linecap:round}.platform-icon.douyin{background:#161616}.platform-icon.douyin path{fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.platform-icon.generic{background:#707070}.platform-icon.generic circle{fill:currentColor}.draft-text{display:-webkit-box;overflow:hidden;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}.draft-text.pending{color:#b83280}.draft-text.sent{color:#27634d}.draft-text.failed{color:#9f2d20}.confidence-badge{min-height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:0 7px;font-size:12px;font-weight:650;white-space:nowrap}.confidence-badge.success{background:#e8f4ee;color:#27634d}.confidence-badge.info{background:#e8f0f5;color:#315a7a}.confidence-badge.warn{background:#f7f1df;color:#776433}th,td{border-bottom:1px solid #e7e7e2;padding:10px;text-align:left;vertical-align:top;font-size:13px;overflow-wrap:anywhere}th{background:#f1f1ee;font-weight:650}td.actions{width:76px;padding:8px}.actions{display:flex;gap:8px;flex-wrap:wrap}td.account-actions{width:150px;min-width:150px;flex-wrap:nowrap;white-space:nowrap}td.account-actions button{min-width:58px;padding:0 10px}.account-link{min-height:28px;justify-content:flex-start;border-color:transparent;background:transparent;color:#141414;padding:0;text-align:left}.account-link:hover{color:#315a7a}.account-modal-backdrop{padding:8px}.modal.account-conversations-modal{width:calc(100vw - 16px);max-width:none;height:calc(100vh - 16px);max-height:calc(100vh - 16px);display:flex;flex-direction:column;overflow:hidden;min-height:0;padding:16px}.account-conversation-layout{flex:1 1 auto;min-height:0;height:100%;display:grid;grid-template-columns:minmax(300px,320px) minmax(0,1fr);gap:12px;overflow:hidden}.account-conversation-list,.account-conversation-detail{min-height:0;min-width:0;overflow:auto}.account-conversation-list table{table-layout:fixed}.account-conversation-list th{position:sticky;top:0;z-index:1}.account-conversation-list th:nth-child(1),.account-conversation-list td:nth-child(1){width:52px}.account-conversation-list th:nth-child(3),.account-conversation-list td:nth-child(3){width:56px}.account-conversation-list th:nth-child(4),.account-conversation-list td:nth-child(4){width:116px}.account-conversation-list tbody tr{cursor:pointer}.account-conversation-list tbody tr.active,.account-conversation-list tbody tr:hover{background:#f4f4f0}.account-conversation-detail{display:flex;flex-direction:column;gap:12px;overflow:hidden}.account-conversation-detail .conversation-summary{flex:0 0 auto;max-height:132px;overflow:auto}.account-conversation-detail .message-list{flex:1 1 auto;min-height:0;overflow:auto;padding-right:2px}.action-read{border-color:#315a7a;background:#315a7a}.action-edit{border-color:#776433;background:#776433}.action-manual{border-color:#595959;background:#595959}.action-correct{border-color:#8a3f67;background:#8a3f67}.action-send{border-color:#27634d;background:#27634d}.action-setup{border-color:#1f5e73;background:#1f5e73}.inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.accounts-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.accounts-invite{display:inline-flex;align-items:center;gap:8px;margin-left:auto}.account-company-cell{display:flex;align-items:center;gap:8px;min-width:0}.account-company-cell select{min-width:0;flex:1 1 auto}.account-company-cell button{min-height:30px;padding:0 10px;flex:0 0 auto}.account-company-modal{width:min(560px,100%);max-height:min(720px,calc(100vh - 48px));display:flex;flex-direction:column;overflow:hidden}.account-company-list{display:grid;gap:8px;min-height:120px;max-height:360px;overflow:auto}.account-company-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #e3e3de;border-radius:8px;padding:8px 10px}.account-company-row span{min-width:0;overflow-wrap:anywhere}.company-create{align-items:center;margin-bottom:10px}.company-name-box{position:relative;width:180px;flex:0 0 180px}.company-name-box.compact{width:132px;flex-basis:132px}.company-name-box input{width:100%;padding-right:30px}.field-clear{position:absolute;top:50%;right:5px;width:24px;min-width:24px;min-height:24px;height:24px;border-color:transparent;background:transparent;color:#777;padding:0;transform:translateY(-50%);line-height:1}.field-clear:hover{background:#eeeeea;color:#1b1b1b}.company-ledger,.company-chips{flex:1 1 260px;display:flex;flex-wrap:wrap;gap:8px;min-width:0}.company-chip{min-height:28px;border-color:#d6d6d0;background:#eeeeea;color:#555;padding:0 10px}.company-chip.active{border-color:#27634d;background:#e8f4ee;color:#27634d}.knowledge-toolbar select:first-child{min-width:150px}.knowledge-company-modal{width:min(560px,100%);max-height:min(720px,calc(100vh - 48px));display:flex;flex-direction:column;overflow:hidden}.knowledge-company-list{flex:1 1 auto;min-height:180px;max-height:420px;overflow:auto}.knowledge-company-list table{table-layout:fixed}.knowledge-company-list th{position:sticky;top:0;z-index:1}.knowledge-company-list th:last-child,.knowledge-company-list td:last-child{width:58px}.knowledge-company-create{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.company-row-name{width:100%;min-height:30px;justify-content:flex-start;border-color:transparent;background:transparent;color:#141414;text-align:left;padding:0 8px}.company-row-name.active{border-color:#b9d7c8;background:#e8f4ee;color:#27634d}.company-delete-cell{text-align:right}.company-delete{width:30px;min-width:30px;min-height:30px;border-color:#9f2d20;background:#9f2d20;padding:0}.knowledge-status{color:#27634d;font-size:13px}.knowledge-files-table{margin-top:0}.knowledge-files-table th:nth-child(1),.knowledge-files-table td:nth-child(1){width:28%}.knowledge-files-table th:nth-child(2),.knowledge-files-table td:nth-child(2){width:18%}.knowledge-files-table th:nth-child(3),.knowledge-files-table td:nth-child(3){width:18%}.knowledge-files-table th:nth-child(5),.knowledge-files-table td:nth-child(5){width:64px}.knowledge-files-table th:nth-child(6),.knowledge-files-table td:nth-child(6){width:82px}.knowledge-files-table th:nth-child(8),.knowledge-files-table td:nth-child(8){width:82px;text-align:right}.pair{margin:16px 0;display:grid;gap:10px;max-width:760px}.pair input{width:100%}.compact-select{width:100%;min-height:30px;min-width:104px}.compact-input{width:100%;min-height:30px;min-width:118px}.compact-button{min-height:30px;padding:0 10px}.danger-action{border-color:#9f2d20;background:#9f2d20}.agent-list{display:grid;gap:12px}.agent-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.agent-pair-form{margin:0}.agent-test-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}.agent-test-controls input{width:132px}.agent-card{display:grid;gap:14px;border:1px solid #deded9;border-radius:8px;background:#fff;padding:14px}.agent-fields{display:grid;grid-template-columns:1.1fr .76fr repeat(10,minmax(0,.58fr)) .65fr .82fr;gap:5px;align-items:stretch;overflow:hidden}.agent-field{display:grid;gap:5px;min-width:0}.agent-fields span{color:#666;font-size:12px;white-space:nowrap}.agent-fields strong{min-height:30px;display:flex;align-items:center;font-size:12px;font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-fields .compact-select{min-width:0;font-size:12px;padding:0 6px}.agent-fields .status-badge{max-width:100%;padding:0 6px;overflow:hidden;text-overflow:ellipsis}.agent-runner-line{gap:3px;overflow:visible}.agent-runner-line .status-badge{flex:1 1 auto;min-width:0}.status-action-button{flex:0 0 auto;min-height:24px;border-color:#d6d6d0;background:#eeeeea;color:#555;padding:0 5px;font-size:11px;font-weight:650}.status-action-button:hover{background:#e5e5df}.agent-name-line{gap:6px}.agent-name-line b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-actions{border-top:1px solid #ecece7;padding-top:12px}.agent-action-row{display:flex;gap:8px;flex-wrap:wrap}.agent-actions button{min-width:82px;padding:0 12px}.agent-actions input{width:132px;min-height:34px}.agent-actions input[type=file].soul-file{width:184px;padding:5px 8px}.model-card{width:min(620px,100%);display:grid;gap:14px;border:1px solid #deded9;border-radius:8px;background:#fff;padding:16px}.checkbox-line{display:inline-flex;grid-template-columns:none;align-items:center;gap:8px}.checkbox-line input{min-height:auto}.model-actions{display:flex;align-items:center;gap:12px}.model-actions span{color:#666;font-size:13px}.setup-backdrop{z-index:30}.setup-modal{width:min(460px,100%)}.setup-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.setup-status-grid div{min-width:0;display:grid;gap:6px;border:1px solid #e3e3de;border-radius:8px;background:#fbfbf8;padding:10px}.setup-status-grid span{color:#666;font-size:12px}.setup-status-grid strong{min-width:0;font-size:13px;overflow-wrap:anywhere}.setup-actions{display:flex;justify-content:flex-end;gap:8px}.setup-guide{display:grid;gap:12px;border:1px solid #deded9;border-radius:8px;background:#fff;padding:14px}.setup-guide ol{margin:0;padding-left:20px;color:#333;font-size:13px;line-height:1.7}.error{min-height:30px;display:flex;align-items:center;border:1px solid #9f2d20;color:#9f2d20;border-radius:6px;padding:0 10px;font-size:13px}.inline-notice{min-height:30px;display:flex;align-items:center;border:1px solid #cfcfc8;border-radius:6px;padding:0 10px;font-size:13px}.inline-notice.info{background:#eef4f7;border-color:#b9d1dc;color:#24576a}.inline-notice.success{background:#e8f4ee;border-color:#b9d7c8;color:#226144}.inline-notice.danger{background:#f6e7e5;border-color:#dcb4ad;color:#9f2d20}.toast-notice{position:fixed;right:24px;top:18px;z-index:40;min-height:36px;display:flex;align-items:center;border:1px solid #cfcfc8;border-radius:8px;background:#fff;color:#141414;padding:0 14px;box-shadow:0 12px 32px #14141424;font-size:13px;font-weight:650}.toast-notice.info{background:#eef4f7;border-color:#b9d1dc;color:#24576a}.toast-notice.success{background:#e8f4ee;border-color:#b9d7c8;color:#226144}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;place-items:center;padding:24px;background:#1414143d}.manual-backdrop{z-index:20}.modal{width:min(520px,100%);display:grid;gap:14px;border:1px solid #deded9;border-radius:8px;background:#fff;padding:18px}.modal h2{margin:0;font-size:18px}.modal-hint{margin:-4px 0 0;color:#666;font-size:13px}.knowledge-manual-modal textarea{min-height:220px}.knowledge-manual-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,180px);gap:10px}.correction-modal textarea:first-of-type{min-height:180px}.correction-modal textarea:last-of-type{min-height:96px}.runner-copy-list{display:grid;gap:10px}.share-modal{width:min(520px,100%)}.copy-block{width:100%;height:auto;display:grid;gap:8px;justify-items:stretch;border-color:#d6d6d0;background:#fafaf7;color:#141414;padding:10px 12px;text-align:left}.copy-block:hover{background:#f3f3ee}.copy-block.copied{border-color:#b9d7c8;background:#e8f4ee}.copy-block.loading{cursor:default}.copy-block.loading span{display:inline-flex;align-items:center;gap:8px}.copy-block.loading span:after{content:"";width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .75s linear infinite}.copy-block span{color:#666;font-size:12px;font-weight:650}.copy-block code{white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.5}.modal-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;min-width:0}.modal-title-row h2{min-width:0;overflow-wrap:anywhere}.modal-title-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px}.conversation-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.conversation-actions button{min-height:30px;padding:0 10px}.modal-actions{display:flex;justify-content:flex-end;gap:8px}.conversation-modal{width:min(760px,100%);max-height:min(760px,calc(100vh - 48px));display:flex;flex-direction:column;overflow:hidden;min-height:0}.log-detail-modal{width:min(760px,100%);max-height:min(720px,calc(100vh - 48px));overflow:auto}.usage-modal{width:min(720px,100%);max-height:min(720px,calc(100vh - 48px));overflow:hidden}.usage-table-wrap{overflow:auto}.usage-table-wrap table{table-layout:fixed}.log-detail-grid{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:10px 12px;min-width:0}.log-detail-grid span{color:#666;font-size:12px}.log-detail-grid strong,.log-detail-grid code{min-width:0;overflow-wrap:anywhere;font-size:13px}.json-block{max-height:360px;overflow:auto;margin:0;border:1px solid #deded9;border-radius:6px;background:#fafaf7;padding:12px;color:#141414;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.copy-json{cursor:pointer}.copy-json:hover{background:#f3f3ee}.conversation-meta{display:flex;align-items:center;flex-wrap:wrap;gap:14px;color:#666;font-size:13px;flex:0 0 auto}.conversation-body{min-height:0;overflow:auto;display:grid;align-content:start;gap:12px;padding-right:2px}.company-select{width:auto;min-width:104px}.soul-select{width:auto;min-width:132px}.company-classify-button{min-height:30px;padding:0 12px;border-color:#2563eb;color:#1d4ed8}.company-classify-button:disabled{border-color:#cbd5e1;color:#94a3b8}.conversation-company-create{display:inline-flex;align-items:center;gap:8px}.conversation-company-create button{min-height:30px;padding:0 10px}.conversation-company-create .field-clear{min-height:24px;padding:0}.conversation-summary{white-space:pre-wrap;border-left:3px solid #27634d;background:#f7faf7;padding:10px 12px;color:#333;font-size:13px;line-height:1.55;min-width:0;overflow-wrap:anywhere}.draft-panel{display:grid;gap:8px;border:1px solid #e3e3de;border-radius:8px;background:#fbfbf8;padding:10px 12px;min-width:0}.draft-panel.pending{border-color:#edd0df;background:#fff4f9}.draft-panel.sent{border-color:#b9d7c8;background:#f1faf5}.draft-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#666;font-size:12px}.draft-head-right{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px}.draft-content{white-space:pre-wrap;color:#141414;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.draft-content.pending{color:#b83280}.draft-content.sent{color:#27634d}.send-error{color:#9f2d20;font-size:12px;overflow-wrap:anywhere}.send-state{display:flex;justify-content:flex-end}.message-list{min-height:240px;overflow:visible;display:grid;align-content:start;gap:10px;border-top:1px solid #ecece7;padding-top:12px;min-width:0}.message-empty{color:#666;font-size:13px}.message-item{display:grid;gap:6px;border-left:3px solid #d6d6d0;padding:8px 10px;background:#fafaf7;min-width:0}.message-item.customer{border-left-color:#315a7a}.message-item.agent{border-left-color:#27634d}.message-item.system{border-left-color:#8a8a82}.message-head{display:flex;gap:10px;flex-wrap:wrap;color:#666;font-size:12px}.message-content{white-space:pre-wrap;font-size:13px;line-height:1.5;overflow-wrap:anywhere}@media(max-width:760px){.shell{height:100dvh;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}aside{grid-template-rows:auto auto;border-right:0;border-bottom:1px solid #deded9;overflow:visible}section{height:auto;min-height:0}nav{grid-template-columns:repeat(auto-fit,minmax(72px,1fr))}table{min-width:760px}}@media(max-width:960px){.modal.account-conversations-modal{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.account-conversation-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(180px,.45fr) minmax(0,1fr)}.account-conversation-list table{min-width:0}}
