.nova-bpmn-root{direction:rtl;border:1px solid #bfcfd1;border-radius:14px;background:#fff;padding:14px;margin:16px 0;color:#18383c}
.nova-bpmn-root .bpmn-controls{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}
.nova-bpmn-root button,.nova-bpmn-root select,.nova-bpmn-root input{font:inherit;padding:7px;border:1px solid #a8bdbe;border-radius:8px;max-width:100%}
.nova-bpmn-root button{cursor:pointer;background:#f2f7f7}.nova-bpmn-root button.primary{background:#0b786c;color:white}
.nova-bpmn-root .bpmn-stage{overflow:auto;direction:ltr;border:1px solid #d4e1e2;background-color:#f6fafb;background-image:radial-gradient(#cfdddd 1px,transparent 1px);background-size:18px 18px;height:440px;border-radius:10px}
.nova-bpmn-root svg{width:1100px;height:690px;touch-action:none;user-select:none}
.nova-bpmn-root .bpmn-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px}
.nova-bpmn-root .bpmn-inspector{background:#f3f7f8;padding:12px;border-radius:10px}
.nova-bpmn-root .bpmn-inspector label{display:block;margin:7px 0 3px}
.nova-bpmn-root .bpmn-inspector input,.nova-bpmn-root .bpmn-inspector select{width:100%}
.nova-bpmn-root .bpmn-node{cursor:move}.nova-bpmn-root .bpmn-selected{filter:drop-shadow(0 0 5px #198c7f)}
.nova-bpmn-root .bpmn-hint{font-size:12px;color:#536d72}
@media(max-width:850px){.nova-bpmn-root .bpmn-grid{grid-template-columns:1fr}}
/* Role swimlanes: horizontal sections, one per identified NOVA role. */
.nova-bpmn-root .bpmn-stage{height:540px;background:#f8fbfd}
.nova-bpmn-root .bpmn-inspector select{margin-bottom:8px}
.nova-bpmn-root #bpmn-change-date{margin-top:8px}

/* v6 semantic categories */
.nova-bpmn-root .bpmn-stage{background-color:#f7fafc}
.nova-bpmn-root .bpmn-node text{font-family:Tahoma,Arial,sans-serif}

/* NOVA BPMN v7 — modern professional editor, role-oriented lanes */
.nova-bpmn-root{background:linear-gradient(145deg,#ffffff,#f5fafb);border:1px solid #cbdfe4;border-radius:18px;box-shadow:0 14px 35px rgba(26,64,82,.09);padding:20px;margin-block:20px;color:#203947;direction:rtl}
.nova-bpmn-root h2{font-size:1.2rem;margin:0 0 6px;color:#164d60;letter-spacing:-.3px}
.nova-bpmn-root .bpmn-hint{color:#567680;line-height:1.7}
.nova-bpmn-root .bpmn-controls{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0;align-items:center}
.nova-bpmn-root .bpmn-controls button{border:1px solid #bad1d8;background:#fff;color:#21596a;border-radius:9px;padding:8px 12px;font:inherit;cursor:pointer;transition:background .15s ease}
.nova-bpmn-root .bpmn-controls button:hover{background:#e4f4f2}
.nova-bpmn-root .bpmn-controls button:disabled{opacity:.45;cursor:not-allowed}
.nova-bpmn-root .bpmn-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:14px;align-items:start;direction:ltr}
.nova-bpmn-root .bpmn-stage{direction:ltr;min-height:440px;max-height:720px;overflow:auto;border:1px solid #c6dce0;border-radius:12px;background-color:#fff;background-image:radial-gradient(#d9e5ea 0.8px,transparent .8px);background-size:18px 18px;box-shadow:inset 0 1px 6px rgba(26,64,82,.04)}
.nova-bpmn-root .bpmn-stage svg{display:block;max-width:none}
.nova-bpmn-root .bpmn-inspector{direction:rtl;background:#f9fcfd;border:1px solid #d8e6e8;border-radius:12px;padding:15px;min-width:0}
.nova-bpmn-root .bpmn-inspector label{display:block;margin-top:10px;color:#325c68;font-weight:650;font-size:13px}
.nova-bpmn-root .bpmn-inspector input,.nova-bpmn-root .bpmn-inspector select{width:100%;min-height:34px;background:#fff;color:#183b49;border:1px solid #bbd1d6;border-radius:7px;padding:5px;box-sizing:border-box}
.nova-bpmn-root .bpmn-node{cursor:grab;filter:drop-shadow(0 2px 2px rgba(12,57,71,.12))}
.nova-bpmn-root .bpmn-selected{filter:drop-shadow(0 0 4px #208f9c)}
@media(max-width:880px){.nova-bpmn-root .bpmn-grid{grid-template-columns:1fr}.nova-bpmn-root .bpmn-inspector{order:-1}}

/* v8: dashboard-grade controls and distinct visual hierarchy; no external font dependency. */
.nova-bpmn-root{font-family:Tahoma,"Segoe UI",Arial,sans-serif;background:#fff;border:1px solid #ccdbe3;box-shadow:0 12px 32px rgba(24,65,83,.10);border-radius:18px}
.nova-bpmn-root .bpmn-stage{background-color:#fcfeff;background-image:linear-gradient(#eef3f7 1px,transparent 1px),linear-gradient(90deg,#eef3f7 1px,transparent 1px);background-size:24px 24px;min-height:570px}
.nova-bpmn-root .bpmn-controls{padding:12px;background:#f3f7fa;border-radius:12px;border:1px solid #dbe6ec}
.nova-bpmn-root .bpmn-controls button:focus-visible{outline:3px solid #2b95ad;outline-offset:2px}
.nova-bpmn-root .bpmn-node text{font-family:Tahoma,"Segoe UI",Arial,sans-serif}
.nova-bpmn-result-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0;padding:12px 14px;background:#f1f8fb;border:1px solid #cbdfe9;border-radius:12px}
.nova-bpmn-result-bar strong{color:#164d60}.nova-bpmn-result-bar span{color:#4d6876}.nova-bpmn-result-bar #nova-bpmn-result{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.kc-commands{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}


/* NOVA_BPMN_VISUAL_V10: visible semantic legend, distinct task/role palettes. */
.nova-bpmn-root .nova-bpmn-type-legend{display:flex;flex-wrap:wrap;gap:9px;align-items:center;padding:12px;background:#f5f9fd;border:1px solid #cfdae8;border-radius:12px;margin:12px 0;direction:rtl}
.nova-bpmn-root .nova-bpmn-type-legend span{font-size:13px;font-weight:750;border-radius:9px;padding:8px 11px;border:1px solid;white-space:nowrap}
.nova-bpmn-root .nova-legend-human{background:#eaf0ff;color:#2d55a6;border-color:#91aae5!important}
.nova-bpmn-root .nova-legend-system{background:#dcf5ed;color:#00695e;border-color:#77c7af!important}
.nova-bpmn-root .nova-legend-decision{background:#fff2d6;color:#8e5a0e;border-color:#e2bf74!important}
.nova-bpmn-root .nova-bpmn-type-legend small{font-size:11px;color:#536775}
.nova-bpmn-root .bpmn-node{transition:filter .15s ease}
.nova-bpmn-root .bpmn-node:hover{filter:drop-shadow(0 4px 6px rgba(29,76,101,.22))}
