.fe-shell { border:1px solid #dedfd8; border-radius:8px; background:#fffdf9; overflow:hidden; color:#28433b; }
.fe-top { display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:5px 10px; border-bottom:1px solid #e6e6df; background:#fffdf9; }
.fe-tools { display:flex; align-items:center; gap:4px; }
.fe-tool { display:inline-grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid transparent; border-radius:6px; background:transparent; color:#315d4a; cursor:pointer; }
.fe-tool:hover:not(:disabled) { background:#eaf2e8; border-color:#c9dacb; }
.fe-tool:disabled { opacity:.35; cursor:default; }
.fe-zoom { font-variant-numeric:tabular-nums; font-size:12px; color:#58675d; }
.fe-palette { display:flex; align-items:center; flex-wrap:wrap; gap:7px; padding:9px 10px; border-bottom:1px solid #e6e6df; background:#fff; }
.fe-palette-label { color:#596b61; font-size:12px; font-weight:650; margin-right:5px; }
.fe-add { display:inline-flex; align-items:center; gap:5px; min-height:34px; padding:4px 9px; border:1px solid #b8c8be; border-radius:6px; background:#f4f7f3; color:#2d4d40; font-size:12px; font-weight:600; cursor:grab; }
.fe-add:active { cursor:grabbing; }
.fe-add svg { width:14px; height:14px; }
.fe-add:hover { filter:brightness(.97); border-color:#648975; }
.fe-add.fe-kind-decision { background:#fbf4df; border-color:#d1bd87; color:#5f512c; }
.fe-add.fe-kind-reference { background:#eaf1f6; border-color:#aebfc9; color:#365569; }
.fe-add.fe-kind-response { background:#f8edef; border-color:#d5b8c1; color:#724858; }
.fe-stage { position:relative; width:100%; height:510px; overflow:hidden; touch-action:none; background-color:#faf9f5; background-image:radial-gradient(#d9ddd7 1px,transparent 1px); background-size:22px 22px; }
.fe-stage.fe-drop-target { box-shadow:inset 0 0 0 3px #5c9475; }
.fe-stage .drawflow { background:transparent; }
.fe-stage .drawflow-node { display:block; width:204px; min-height:148px; padding:0; border:1.5px solid var(--fe-border,#a5b9a8); border-radius:7px; background:var(--fe-bg,#f2f6f0); color:#2b4038; box-shadow:0 3px 10px #24382b16; }
.fe-stage .drawflow-node.fe-kind-start { --fe-bg:#edf2f3; --fe-border:#9fb5ba; }
.fe-stage .drawflow-node.fe-kind-decision { --fe-bg:#fbf4df; --fe-border:#cbb777; }
.fe-stage .drawflow-node.fe-kind-reference { --fe-bg:#eaf1f6; --fe-border:#9eafbd; }
.fe-stage .drawflow-node.fe-kind-response { --fe-bg:#f8edef; --fe-border:#c9aab4; }
.fe-stage .drawflow-node.fe-kind-care { --fe-bg:#f8eee6; --fe-border:#c8aa94; }
.fe-stage .drawflow-node.fe-kind-finish { --fe-bg:#eef3eb; --fe-border:#a8b8a5; }
.fe-stage .drawflow-node.fe-traced { border-color:#168b62; box-shadow:0 0 0 3px #88cba868,0 5px 14px #214d3620; }
.fe-stage .drawflow-node.selected { background:var(--fe-bg,#f2f6f0); border-color:#1d6b51; box-shadow:0 0 0 3px #bcdfc8,0 5px 14px #214d3620; }
.fe-stage .drawflow-node:focus-visible { outline:3px solid #246e52; outline-offset:3px; }
.fe-stage .drawflow-node .drawflow_content_node { width:100%; }
.fe-node-body { display:flex; flex-direction:column; gap:6px; padding:11px 15px; min-height:146px; pointer-events:none; }
.fe-node-body strong { font-size:14px; line-height:1.35; }
.fe-node-body small { font-size:11px; color:#485e55; line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.fe-node-scope { display:flex; align-items:center; justify-content:space-between; gap:5px; color:#36554b; font-size:10px; font-weight:700; }
.fe-lock { display:inline-flex; align-items:center; gap:3px; color:#475f63; font-size:10px; font-weight:600; }
.fe-lock svg { width:12px; height:12px; }
.fe-port-summary { margin-top:auto; padding-top:5px; border-top:1px solid #7b94802e; color:#455b52; font-size:10px; line-height:1.5; }
.fe-stage .drawflow-node .inputs,.fe-stage .drawflow-node .outputs { position:absolute; top:26px; display:flex; flex-direction:column; width:0; }
.fe-stage .drawflow-node .inputs { left:0; }
.fe-stage .drawflow-node .outputs { right:0; }
.fe-stage .drawflow-node .input,.fe-stage .drawflow-node .output { position:relative; flex:none; width:18px; height:18px; border:2px solid #fff; background:#41735d; box-shadow:0 0 0 1px #2d644c; margin-bottom:8px; }
.fe-stage .drawflow-node .input { left:-9px; }
.fe-stage .drawflow-node .output { right:9px; }
.fe-stage .drawflow-node.fe-fixed .input,.fe-stage .drawflow-node.fe-fixed .output { background:#607b80; box-shadow:0 0 0 1px #486b70; }
.fe-stage .drawflow-node .fe-branch { background:#c07a35; box-shadow:0 0 0 2px #925a23; }
.fe-stage .connection .main-path { stroke:#819b8c; stroke-width:4px; }
.fe-stage .connection.fe-traced .main-path { stroke:#168b62; stroke-width:5px; }
.fe-stage .connection .main-path.selected { stroke:#ae702f; stroke-width:5px; }
.fe-stage .drawflow-delete { display:none; }
.fe-link-editor { border-top:1px solid #e6e6df; padding:8px 10px; background:#fffdf9; }
.fe-link-editor summary { width:max-content; max-width:100%; color:#246c4b; font-size:12px; font-weight:650; cursor:pointer; }
.fe-link-form { display:flex; align-items:end; flex-wrap:wrap; gap:8px; padding:10px 0; }
.fe-link-form label { display:flex; flex:1 1 180px; flex-direction:column; gap:4px; color:#4e6357; font-size:11px; }
.fe-link-form select { width:100%; min-width:0; height:40px; padding:4px 6px; border:1px solid #cbd9cf; border-radius:5px; background:#fff; color:#254b39; font-size:12px; }
.fe-connect-button { min-height:40px; padding:0 13px; border:1px solid #267458; border-radius:5px; background:#2d795c; color:#fff; font-size:12px; cursor:pointer; }
.fe-connect-button:hover { background:#196347; }
.fe-edge-list { max-height:150px; overflow:auto; border-top:1px solid #e8e8e1; }
.fe-edge-row { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:40px; padding:4px 0; border-bottom:1px solid #eeeee8; font-size:11px; color:#4d6558; }
.fe-edge-row span { overflow-wrap:anywhere; }
.fe-edge-row button { flex:0 0 auto; min-height:36px; padding:0 8px; border:0; background:none; color:#985021; font-size:11px; cursor:pointer; }
.fe-edge-row button:disabled { color:#81948a; cursor:default; }
.fe-foot { display:flex; align-items:center; min-height:30px; padding:5px 10px; border-top:1px solid #e6e6df; color:#596f61; font-size:11px; }
.fe-selected { color:#1c6d4f; font-weight:650; }
@media (max-width:760px) {
  .fe-palette { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; padding:8px; }
  .fe-palette-label { flex:0 0 auto; }
  .fe-add { flex:0 0 auto; min-height:40px; cursor:pointer; }
  .fe-stage { height:460px; }
  .fe-stage .drawflow-node .input,.fe-stage .drawflow-node .output { width:22px; height:22px; margin-bottom:9px; }
  .fe-stage .drawflow-node .input::before,.fe-stage .drawflow-node .output::before { content:""; position:absolute; inset:-12px; }
  .fe-stage .drawflow-node .input { left:-11px; }
  .fe-stage .drawflow-node .output { right:11px; }
  .fe-link-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .fe-connect-button { grid-column:1 / -1; }
}
