.process-builder-shell{min-height:100vh;background:#08111f;color:#e5edf8;display:flex;flex-direction:column}
.process-builder-topbar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 18px;border-bottom:1px solid rgba(148,163,184,.12);background:rgba(9,17,31,.96)}
.process-builder-topbar__left,.process-builder-topbar__actions,.process-zoom-control{display:flex;align-items:center;gap:12px}
.process-builder-topbar h1{font-size:24px;line-height:1;margin:4px 0 0;color:#f3f7ff}.process-zoom-control{gap:6px;padding:4px;border:1px solid rgba(148,163,184,.12);border-radius:14px;background:rgba(15,25,40,.7)}.process-zoom-control .pb-btn{min-width:42px;padding:8px 10px}.process-zoom-control__value{min-width:68px}
.process-builder-layout{display:grid;grid-template-columns:270px 1fr 340px;flex:1;min-height:0}
.process-builder-sidebar{padding:18px;border-color:rgba(148,163,184,.12);background:#07101d;overflow:auto}
.process-builder-sidebar.left{border-right:1px solid rgba(148,163,184,.12)}
.process-builder-sidebar.right{border-left:1px solid rgba(148,163,184,.12)}
.process-side-section{padding:16px;border:1px solid rgba(148,163,184,.12);border-radius:18px;background:rgba(15,25,40,.88);margin-bottom:16px}
.process-side-section__title{font-size:14px;font-weight:900;margin-bottom:14px;color:#f3f7ff}
.process-side-section__title--split{display:flex;align-items:center;justify-content:space-between;gap:10px}
.process-clean-list{margin:0;padding-left:18px;color:#95a5ba;line-height:1.65}
.process-action-legend{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.process-action-pill{display:inline-flex;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900;background:#1d2b3d;color:#dbe6f5;white-space:nowrap}
.process-action-pill--approve{background:#113b35;color:#a7f3d0}.process-action-pill--assign{background:#152d4a;color:#bfdbfe}.process-action-pill--stage{background:#42360f;color:#fde68a}.process-action-pill--move{background:#2d2149;color:#ddd6fe}.process-action-pill--finish{background:#4a1d2a;color:#fecdd3}
.process-builder-canvas-wrap{min-width:0;overflow:hidden;background:#0b1423}
.process-drawflow-wrap{position:relative;height:100%;min-height:calc(100vh - 70px);overflow:auto;background-image:linear-gradient(rgba(148,163,184,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.05) 1px,transparent 1px);background-size:28px 28px}
.process-drawflow{position:relative;width:2400px;height:1600px;min-width:100%;min-height:calc(100vh - 70px)}
.process-link-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.process-link-layer path{fill:none;stroke:#5da8ff;stroke-width:3;filter:drop-shadow(0 0 6px rgba(93,168,255,.35))}
.process-link-layer .process-link-preview{stroke:#22d3ee;stroke-dasharray:8 8}
.drawflow-node{position:absolute;z-index:2;width:280px;border-radius:18px;background:#101b2c;border:1px solid rgba(148,163,184,.14);box-shadow:0 22px 60px rgba(0,0,0,.34);cursor:grab;user-select:none}
.drawflow-node.selected{box-shadow:0 0 0 10px #22d3ee,0 26px 70px rgba(0,0,0,.42)}
.drawflow_content_node{border-radius:18px;overflow:visible}
.process-port{position:absolute;top:50%;width:12px;height:12px;border-radius:50%;background:#dbeafe;border:2px solid #6b7d93;transform:translateY(-50%);z-index:6;cursor:pointer}
.process-port.input{left:-7px}.process-port.output{right:-7px}.process-port.is-pending,.process-port.is-target{background:#22d3ee;box-shadow:0 0 0 8px rgba(34,211,238,.18)}
.process-button-port{right:-20px!important;left:auto;top:50%}
.df-node__head{padding:16px 18px;background:linear-gradient(135deg,#23345f,#392b76);border-radius:18px 18px 0 0}
.df-node__title{font-weight:900;color:#fff;margin-bottom:6px}
.df-node__user{font-size:12px;color:#c9d6e8}
.df-node__body{padding:14px 16px 16px}
.df-node__description{color:#a9b8cc;font-size:13px;margin-bottom:12px;line-height:1.45}
.df-node__buttons{display:flex;flex-direction:column;gap:8px}
.df-node__button{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 28px 10px 12px;border-radius:12px;background:#1b2738;color:#e6eef9;font-size:13px}
.process-field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;color:#a7b4c6;font-size:12px;font-weight:800}
.process-field input,.process-field textarea,.process-field select{width:100%;border:1px solid rgba(148,163,184,.12);border-radius:12px;background:#1b2738;color:#e5edf8;padding:12px;outline:0}
.process-field textarea{resize:vertical;min-height:78px}
.process-transition-hint{padding:10px 12px;border-radius:12px;background:rgba(34,211,238,.08);border:1px solid rgba(34,211,238,.14);line-height:1.45}
.process-buttons-editor-list{display:flex;flex-direction:column;gap:12px}
.process-button-config{border:1px solid rgba(148,163,184,.12);border-radius:16px;background:#111b2b;padding:14px}
.process-button-config__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.process-button-config__title{font-weight:900}.process-icon-btn{border:0;border-radius:10px;background:#4a1d2a;color:#fecdd3;width:28px;height:28px;cursor:pointer;font-weight:900}
.process-side-section--actions{background:transparent;border:0;padding:0}.json-modal{position:fixed;inset:0;display:none;place-items:center;background:rgba(0,0,0,.6);z-index:20}.json-modal.is-open{display:grid}.json-modal__card{width:min(900px,92vw);max-height:80vh;overflow:auto;border-radius:18px;padding:18px;background:#0f1928;border:1px solid rgba(148,163,184,.18)}.json-modal pre{white-space:pre-wrap;color:#dbeafe}
@media (max-width:1180px){.process-builder-layout{grid-template-columns:230px 1fr}.process-builder-sidebar.right{grid-column:1/-1;border-left:0;border-top:1px solid rgba(148,163,184,.12)}}
@media (max-width:760px){.process-builder-topbar,.process-builder-topbar__left,.process-builder-topbar__actions{align-items:flex-start;flex-direction:column;height:auto}.process-zoom-control{align-items:center;flex-direction:row}.process-builder-layout{grid-template-columns:1fr}.process-drawflow-wrap,.process-drawflow{min-height:620px}.drawflow-node{width:250px}}
