.workflow-designer-nav{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;text-align:left;font:inherit;cursor:pointer}.workflow-designer-nav:hover,.workflow-designer-nav:focus-visible{background:#eaf3ec;outline:2px solid transparent}
.business-workflow-designer{box-sizing:border-box;width:min(1080px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;color:#203b32;font:inherit}.business-workflow-designer h3{margin:0;font-size:15px}.business-workflow-designer p{margin:0;line-height:1.55}.bwd-step-heading p,.bwd-hint{color:#66796d;font-size:13px}
.business-workflow-designer>.portal-content{padding:0}
.bwd-layout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:360px;max-height:min(65dvh,710px);overflow:auto}.bwd-layout aside{padding:22px 16px 22px 24px;border-right:1px solid #e3ebe5;background:#fbfdfb}.bwd-aside-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.bwd-layout aside h3{margin:24px 0 10px}.bwd-flow-list,.bwd-template-list{display:grid;gap:7px}.bwd-flow-item,.bwd-template{display:grid;gap:4px;width:100%;padding:11px 12px;border:1px solid #dce8e0;border-radius:9px;background:#fff;text-align:left;color:#244736;font:inherit;font-size:13px;cursor:pointer}.bwd-flow-item small,.bwd-template small{font-size:11px;color:#6c7d71;line-height:1.45}.bwd-template:disabled{opacity:.5;cursor:not-allowed}.bwd-empty{list-style:none;margin:6px 0;color:#728276;font-size:13px;line-height:1.5}
.bwd-editor{padding:24px 28px 26px;min-width:0}.bwd-fields{display:grid;grid-template-columns:minmax(180px,2fr) 100px minmax(160px,1.2fr);gap:12px}.bwd-fields label{display:grid;gap:6px;color:#526c5c;font-size:12px;font-weight:600}.bwd-fields input,.bwd-fields select,.bwd-add select{box-sizing:border-box;width:100%;min-width:0;padding:10px 11px;border:1px solid #cdded2;border-radius:8px;background:#fff;color:#203b32;font:inherit;font-size:13px}.bwd-fields input:read-only{background:#f5f8f5}.bwd-hint{margin-top:9px!important}.bwd-step-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:26px 0 12px}.bwd-step-heading p{margin-top:5px}.bwd-add{display:flex;gap:7px;min-width:280px}.bwd-add select{max-width:260px}.business-workflow-designer :is(.bwd-layout,footer) button{border:1px solid #bfd8c6;border-radius:8px;padding:8px 11px;background:#fff;color:#23523a;font:inherit;font-size:12px;cursor:pointer}.business-workflow-designer :is(.bwd-layout,footer) button:hover:not(:disabled){background:#eaf4ed}.business-workflow-designer :is(.bwd-layout,footer) button:disabled{opacity:.5;cursor:not-allowed}.business-workflow-designer :is(.bwd-layout,footer) button.primary{background:#246b46;color:#fff;border-color:#246b46}.business-workflow-designer :is(.bwd-layout,footer) button.primary:hover:not(:disabled){background:#175536}
.bwd-steps{display:grid;gap:9px;list-style:none;margin:0;padding:0}.bwd-step{display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid #dfe9e1;border-radius:10px;background:#fbfdfb}.bwd-step-number{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#e2efe6;color:#246b46;font-size:12px;font-weight:700}.bwd-step-copy{display:grid;gap:3px;min-width:0;flex:1}.bwd-step-copy strong{font-size:13px}.bwd-step-copy small{overflow:hidden;text-overflow:ellipsis;color:#728075;font-size:11px}.bwd-step-controls{display:flex;gap:5px}.bwd-warning{margin-top:13px!important;padding:10px 12px;border:1px solid #efd9a7;border-radius:8px;background:#fff9ea;color:#775b20;font-size:12px}.bwd-review{margin-top:18px;padding:14px;border:1px solid #b9dec4;border-radius:10px;background:#f1faf3}.bwd-review strong{color:#246b46}.bwd-review p{margin:7px 0!important;font-size:13px}.bwd-review small{word-break:break-all;color:#6c7d71;font-size:11px}.bwd-status{min-height:22px;margin-top:16px!important;color:#5d7263;font-size:13px}.bwd-status[data-tone=error]{color:#ad3e31}.bwd-status[data-tone=success]{color:#237044}
.business-workflow-designer>footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 28px;border-top:1px solid #e3ebe5;background:#f8fbf8}.business-workflow-designer>footer>span{color:#66796d;font-size:12px}.business-workflow-designer>footer>div{display:flex;gap:8px;flex-wrap:wrap}
.business-workflow-designer.portal-maximized .bwd-layout{flex:1;min-height:0;max-height:none}
@media(max-width:800px){.bwd-layout{grid-template-columns:1fr;max-height:calc(100dvh - 150px)}.bwd-layout aside{border-right:0;border-bottom:1px solid #e3ebe5}.bwd-flow-list,.bwd-template-list{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.bwd-fields{grid-template-columns:1fr 90px}.bwd-fields label:last-child{grid-column:1/-1}.bwd-step-heading{display:grid}.bwd-add{min-width:0}.business-workflow-designer>footer{align-items:start;flex-direction:column}.bwd-editor{padding:20px}}

/* Desktop business paths read left to right; legacy runtime styles are retained. */
.business-workflow-designer{width:min(1480px,calc(100vw - 48px))}
.bpd-center{container-type:inline-size}
.business-workflow-designer .bpd-node-button{grid-template-columns:18px minmax(0,1fr);gap:6px;padding:10px 8px}.business-workflow-designer .bpd-node-button svg{width:18px;height:18px}
.business-workflow-designer .bpd-layout{grid-template-rows:minmax(0,1fr)}.business-workflow-designer .bpd-layout>aside,.business-workflow-designer .bpd-center{min-height:0}.business-workflow-designer .bwd-tabs{flex:none}.business-workflow-designer .bpd-library{display:flex;flex-direction:column;overflow:hidden}.business-workflow-designer .bpd-library>[data-library]{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}.business-workflow-designer .bpd-library>h3,.business-workflow-designer .bpd-library>input,.business-workflow-designer .bpd-library>[data-manage]{flex:none}.business-workflow-designer .bpd-path-viewport{box-sizing:border-box;min-height:100%;height:100%;display:flex;align-items:center;padding-top:40px;padding-bottom:100px}
.business-workflow-designer .bpd-path{gap:24px}.business-workflow-designer .bpd-path>li:not(:last-child)::after{width:24px}.business-workflow-designer .bpd-node-button{width:clamp(100px,calc((100cqw - 290px)/4),146px)}.business-workflow-designer .bpd-terminal{box-sizing:border-box;min-width:54px;padding:9px 13px}.business-workflow-designer .bpd-path-viewport{padding-left:20px;padding-right:20px}.business-workflow-designer [data-runs]{overflow:auto;min-height:0;flex:1}
.business-workflow-designer:has(.bpd-layout){width:min(1600px,calc(100vw - 48px));height:min(900px,calc(100dvh - 48px));display:flex;flex-direction:column;background:#fff}
.business-workflow-designer:has(.bpd-layout)>.portal-content{display:flex;flex-direction:column;overflow:hidden;flex:1;padding:0}
.business-workflow-designer [data-design]{display:flex;flex-direction:column;flex:1;min-height:0}
.bpd-toolbar{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #e3ebe5;flex-wrap:wrap;flex:none}
.bpd-toolbar [data-name]{flex:1;min-width:180px;font-size:17px;font-weight:600;border-color:transparent}.bpd-toolbar [data-flows]{max-width:250px}.bpd-toolbar input,.bpd-toolbar select,.bpd-library input,.bpd-inspector input,.bpd-inspector select,.bpd-settings input,.bpd-settings select{box-sizing:border-box;border:1px solid #d3dfd8;background:#fff;border-radius:5px;padding:9px;font:inherit;color:inherit;min-width:0}.bpd-toolbar button,.bpd-layout button,.bpd-run-row{border:1px solid #cfddd5;border-radius:5px;padding:8px 11px;background:#fff;color:#245d43;font:inherit;font-size:13px;cursor:pointer}.bpd-layout button:disabled{opacity:.5;cursor:not-allowed}
.bpd-layout{display:grid;grid-template-columns:235px minmax(0,1fr) 285px;min-height:0;flex:1}.bpd-library,.bpd-inspector{padding:20px;overflow:auto;scrollbar-width:thin}.bpd-library{border-right:1px solid #e3ebe5}.bpd-inspector{border-left:1px solid #e3ebe5}.bpd-library>input{width:100%;font-size:12px;margin:16px 0 4px}.bpd-library h4{font-size:12px;color:#6c7d73;margin:20px 0 10px}.bpd-library-node{display:flex;align-items:center;width:100%;gap:8px;text-align:left;margin:6px 0}.bpd-library-node svg{width:18px;height:18px;stroke:#436651;fill:none;stroke-width:1.5}.bpd-plugin-tile{display:grid;width:100%;margin:10px 0;padding:12px!important;gap:6px;text-align:left;border:1px solid #dce5df;border-radius:6px;background:white}.bpd-plugin-tile svg{width:25px;height:25px;stroke:#2b7151;fill:none;stroke-width:1.5}.bpd-plugin-tile strong{font-size:13px}.bpd-plugin-tile small{font-size:11px;color:#697d71}.bpd-plugin-tile summary{font-size:13px;cursor:pointer}.bpd-library>[data-manage]{margin-top:18px;border:0;color:#26744f;padding:0}
.bpd-center{min-width:0;display:flex;flex-direction:column;background:#fafcfb}.bpd-settings{padding:10px 16px;flex:none;border-bottom:1px solid #e3ebe5;background:white;font-size:12px;color:#63786c}.bpd-settings summary{cursor:pointer}.bpd-settings label{display:inline-flex;gap:6px;align-items:center;margin:12px 12px 4px 0}.bpd-canvas{flex:1;min-height:0;overflow:auto;position:relative;background-image:radial-gradient(#dbe6df .7px,transparent .7px);background-size:16px 16px}.bpd-path-viewport{overflow:auto;min-height:340px;padding:120px 26px 95px;scrollbar-width:thin}.bpd-path{display:flex;align-items:center;gap:40px;list-style:none;margin:0;padding:0;width:max-content;min-width:100%;box-sizing:border-box}.bpd-path>li{position:relative;flex:none}.bpd-path>li:not(:last-child)::after{content:'→';position:absolute;left:100%;width:40px;top:50%;transform:translateY(-50%);text-align:center;font-size:19px;color:#8b9c92}.bpd-terminal{border:1px solid #3c8562;background:#edf6f0;border-radius:24px;padding:10px 18px;font-size:13px;white-space:nowrap}.bpd-node-button{display:grid;grid-template-columns:22px 1fr;gap:6px 10px;width:146px;min-height:86px;text-align:left;box-shadow:0 2px 4px #27463808}.bpd-node-button svg{width:20px;height:20px;stroke:#3e6050;fill:none;stroke-width:1.5;grid-row:1/3;align-self:center}.bpd-node-button strong{font-size:13px;align-self:end}.bpd-node-button small{font-size:11px;color:#6b8073;grid-column:2}.bpd-node-button[aria-pressed=true]{border-color:#28724e;background:#f4faf6;box-shadow:0 0 0 1px #28724e}.bpd-reject-branch{position:absolute;left:50%;top:100%;display:flex;flex-direction:column;align-items:center;transform:translateX(-50%);font-size:11px;color:#b44848;padding-top:26px;gap:9px}.bpd-reject-branch::before{content:'';width:1px;background:#c96767;height:25px;position:absolute;top:0}.bpd-reject-end{border:1px solid #d99898;background:#fff8f8;border-radius:22px;padding:7px 13px;white-space:nowrap}.bpd-empty{position:absolute;left:24px;bottom:26px;color:#7b8d82;font-size:13px}.bpd-canvas-footer{padding:13px 20px;display:flex;justify-content:space-between;border-top:1px solid #e3ebe5;color:#7a8a80;font-size:11px;gap:10px}.bpd-inspector h3{font-size:16px;margin-bottom:22px}.bpd-inspector h4{font-size:13px;margin:26px 0 12px}.bpd-inspector label{display:flex;flex-direction:column;gap:8px;font-size:13px;margin:14px 0}.bpd-inspector button{margin:12px 5px 0 0;font-size:12px}.bpd-field-chip{font-size:12px;padding:7px 10px;border:1px solid #e1e9e4;border-radius:5px;margin:7px 0!important;background:#fafcfb}.bpd-result{font-size:12px;margin:10px 0!important}.bpd-result.rejected{color:#b45050}.bpd-run-row{display:block;width:100%;text-align:left;margin:10px 0}.business-workflow-designer>.portal-status{padding:10px 22px;font-size:12px;border-top:1px solid #e3ebe5}.business-workflow-designer .bpd-layout [hidden]{display:none!important}.business-workflow-designer.portal-maximized .bpd-layout{flex:1;min-height:0;max-height:none}
@media(max-width:1100px){.bpd-layout{grid-template-columns:190px minmax(0,1fr) 230px}.bpd-library,.bpd-inspector{padding:15px}.bpd-path-viewport{padding-left:20px}.bpd-toolbar [data-flows]{max-width:190px}}
@media(max-width:800px){.business-workflow-designer:has(.bpd-layout){width:calc(100vw - 20px);height:calc(100dvh - 20px)}.business-workflow-designer:has(.bpd-layout)>.portal-content{overflow:auto}.bpd-layout{display:flex;flex-direction:column;overflow:visible}.bpd-library{border-bottom:1px solid #e3ebe5;border-right:0;max-height:230px;flex:none}.bpd-library [data-library]{display:flex;gap:12px;flex-wrap:wrap}.bpd-library-node,.bpd-plugin-tile{width:auto;min-width:130px}.bpd-library h4{width:100%}.bpd-center{min-height:400px;flex:none}.bpd-inspector{border-left:0;border-top:1px solid #e3ebe5;flex:none;overflow:visible}.bpd-toolbar [data-name]{flex-basis:100%}.bpd-path-viewport{padding-top:70px}.bpd-canvas-footer{flex-wrap:wrap}}
.business-workflow-designer [hidden]{display:none!important}
.business-workflow-designer>.portal-content{overflow:auto;min-height:0}
.bwd-tabs{display:flex;gap:8px;padding:12px 22px;border-bottom:1px solid #e3ebe5;background:#fff}
.bwd-tabs button,.bwd-runs button{font:inherit;font-size:13px;border:1px solid #bfd8c6;border-radius:8px;padding:9px 12px;background:#fff;color:#23523a;cursor:pointer}
.bwd-tabs button[aria-pressed=true]{background:#e2efe6;border-color:#246b46;font-weight:600}
.business-workflow-designer button:focus-visible,.business-workflow-designer :is(input,select,textarea,summary):focus-visible{outline:2px solid #246b46;outline-offset:3px}
.bwd-layout{grid-template-columns:205px minmax(0,1fr);max-height:none;overflow:visible;min-height:420px}
.bwd-layout aside{padding:20px 14px}.bwd-editor{padding:22px;min-width:0}
.bwd-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.bwd-title h3{font-size:19px}.bwd-badge{display:inline-block;border-radius:6px;padding:3px 7px;background:#eaf3ec;font-size:12px;color:#23523a}
.bwd-settings{margin-bottom:18px;padding:10px 12px;border:1px solid #e3ebe5;border-radius:8px}
.bwd-settings summary,.bwr-more summary,.bwr-history summary{cursor:pointer;font-size:13px;color:#526c5c}.bwd-settings .bwd-fields{margin-top:12px}
.bwd-canvas{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.bwd-path-viewport{min-width:0;overflow-x:auto;padding:12px 4px 48px;scrollbar-width:thin}
.bwd-path-viewport:focus-visible{outline:2px solid #246b46;outline-offset:2px}
.bwd-path{display:flex;flex-direction:row;align-items:center;list-style:none;padding:0;margin:0;gap:36px;min-width:940px}
.bwd-path>li{position:relative;margin:0;min-width:0;flex:1 0 140px}
.bwd-path>li.bwd-terminal{box-sizing:border-box;flex:0 0 100px}
.bwd-path>li:not(:last-child)::after{content:'→';position:absolute;top:50%;left:100%;transform:translateY(-50%);width:36px;text-align:center;color:#71877a;font-size:20px;pointer-events:none}
.bwd-terminal{padding:9px 12px;border:1px solid #b8d2c0;border-radius:22px;background:#f1f7f3;text-align:center;font-size:13px;line-height:1.5}
.bwd-node{box-sizing:border-box;display:grid;gap:7px;border:1px solid #d5e4da;border-radius:10px;background:#fff;padding:13px;min-height:132px}
.bwd-node small{font-size:12px;color:#617669;line-height:1.5}.bwd-node strong{font-size:14px}
.bwd-node:has(.bwd-node-button){padding:0}
.business-workflow-designer .bwd-layout .bwd-node-button{display:grid;grid-template-columns:28px minmax(0,1fr);gap:7px 10px;width:100%;min-height:130px;padding:13px;text-align:left;border:0;background:#fff;white-space:normal}
.bwd-node-button small{grid-column:1/-1}.bwd-node-button strong{align-self:center}
.business-workflow-designer .bwd-layout .bwd-node-button[aria-pressed=true]{background:#f0f8f3;box-shadow:inset 0 0 0 2px #246b46}
.business-workflow-designer .bwd-layout .bwd-insert{position:absolute;top:calc(50% + 22px);right:-32px;width:28px;height:28px;padding:0;border-radius:50%;font-size:18px;line-height:1}
.bwd-inspector{padding:18px;border:1px solid #dfe9e1;border-radius:10px;background:#fbfdfb;display:flex;flex-wrap:wrap;gap:12px;min-width:0}
.bwd-inspector :is(h3,p,details){width:100%}.bwd-inspector p{font-size:13px}.bwd-inspector details{overflow-wrap:anywhere;font-size:12px}
.bwd-picker-action{display:grid;gap:6px;width:100%;padding:12px;margin-bottom:8px;border:1px solid #d5e4da;border-radius:8px;background:#fff;text-align:left;color:#23523a;cursor:pointer;font:inherit;font-size:14px}
.bwd-picker-action small{font-size:12px;color:#617669}.bwd-picker-action:disabled{opacity:.6;cursor:not-allowed}
.bwd-status{padding:12px 22px;margin:0!important;border-top:1px solid #e3ebe5;overflow-wrap:anywhere}
.bwd-runs{padding:20px 22px}.bwr-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.bwr-toolbar label,.bwr-quote-form label{display:grid;gap:6px;font-size:12px;color:#526c5c;min-width:0}
.bwd-runs :is(input,select,textarea){box-sizing:border-box;min-width:0;width:100%;padding:9px 10px;border:1px solid #cdded2;border-radius:8px;background:#fff;font:inherit;color:#203b32}
.bwr-toolbar label{flex:1;min-width:180px}.bwr-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;margin-top:20px}
.bwr-list h3{margin-bottom:12px}.bwr-list [data-run-list]{display:grid;gap:8px}.bwr-list .bwd-flow-item{overflow-wrap:anywhere;text-align:left}
.bwr-list .bwd-flow-item[aria-pressed=true]{border-color:#246b46;background:#f0f8f3}.bwr-pages{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:14px;font-size:12px}
.bwr-pages button{padding:6px}.bwr-detail{min-width:0}.bwr-detail>h3{font-size:17px}.bwr-process{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;margin-top:20px}
.bwr-process .bwd-path-viewport{padding-bottom:16px}
.bwr-operation{min-width:0}.bwr-operation h3{margin:14px 0 10px}.bwr-operation>button{margin-top:12px}
.bwd-runs button.primary{background:#246b46;border-color:#246b46;color:#fff}.bwd-runs button:disabled{opacity:.5;cursor:not-allowed}
.bwd-node[data-step-status='当前待处理']{border:2px solid #246b46;background:#f0f8f3}.bwd-node[data-step-status='未开始']{background:#f8faf8;color:#617669}
.bwd-node[data-step-status='需核对结果']{border-color:#bc8530;background:#fff9ea}.bwd-node[data-step-status='处理中']{border-color:#bc8530}
.bwr-document{border:1px solid #dfe9e1;border-radius:9px;padding:12px;font-size:13px;overflow-wrap:anywhere}.bwr-document h3{margin-top:0}.bwr-document ul{padding-left:18px;line-height:1.7}.bwr-document summary{cursor:pointer;margin-top:10px}
.bwr-quote-form{display:grid;gap:12px;margin-top:12px}.bwr-quote-items{display:grid;gap:12px}.bwr-quote-item{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #dfe9e1;border-radius:9px;min-width:0}
.bwr-quote-item legend{font-size:13px}.bwr-quote-item button{grid-column:1/-1}.bwr-more[open]{display:grid;gap:10px}.bwr-history{margin-top:18px;border-top:1px solid #e3ebe5;padding-top:12px}.bwr-history p{font-size:12px;margin-top:8px!important;overflow-wrap:anywhere}
@media(max-width:800px){.business-workflow-designer{width:calc(100vw - 32px)}.bwd-layout,.bwr-layout{grid-template-columns:1fr}.bwd-layout aside{border-right:0;border-bottom:1px solid #e3ebe5}.bwr-list [data-run-list]{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.bwd-canvas{gap:14px}.bwd-path-viewport{padding:12px 4px 4px;overflow:visible}.bwd-path{flex-direction:column;align-items:stretch;gap:36px;min-width:0;max-width:480px;margin:auto}.bwd-path>li,.bwd-path>li.bwd-terminal{flex:none}.bwd-path>li:not(:last-child)::after{content:'↓';top:100%;left:50%;transform:translateX(-50%);height:36px;line-height:36px}.business-workflow-designer .bwd-layout .bwd-insert{top:calc(100% + 4px);right:calc(50% - 54px)}.bwd-runs{padding:16px}.bwr-quote-item{grid-template-columns:repeat(2,minmax(0,1fr))}.bwd-fields{grid-template-columns:1fr 90px}}
@media(max-width:480px){.bwr-quote-item{grid-template-columns:1fr}.bwd-fields{grid-template-columns:1fr}.bwd-fields label:last-child{grid-column:auto}}
.bpd-condition-paths{display:grid;gap:6px;margin-top:12px;font-size:12px}.bpd-condition-paths span{padding:6px 8px;border-radius:6px;background:#edf3fa;color:#355873;overflow-wrap:anywhere}.bpd-inspector select{max-width:100%;width:100%}.bpd-inspector label{display:grid;gap:6px;margin:12px 0}.ep-runtime-progress{display:flex;gap:24px;list-style:none;padding:16px;overflow-x:auto}.ep-runtime-progress li{min-width:160px;border:1px solid #cfddd5;border-radius:9px;padding:14px}.ep-runtime-progress small{display:block;line-height:1.8;margin-top:10px;color:#526b60}
