.process-flow { --flow-indent:32px; }
.process-flow .flow-node { padding-bottom:12px; scroll-margin:24px; }
.continuation-rail { position:absolute; z-index:0; bottom:0; left:calc(13px + var(--rail-offset) * var(--flow-indent)); width:1px; background:repeating-linear-gradient(to bottom,#9fc3bc 0 2px,transparent 2px 6px); pointer-events:none; }
.continuation-rail.rail-start { top:25px; }
.continuation-rail.rail-pass { top:0; }
.process-flow .flow-node:target .node-content { outline:2px solid var(--primary); outline-offset:3px; }
.process-flow .node-content { overflow-wrap:anywhere; }
.branch-caption, .continuation-caption { padding-bottom:7px; margin-bottom:7px; border-bottom:1px solid #dce9e5; font-size:10px; color:#496f67; }
.branch-caption a, .continuation-caption a { text-decoration:underline; text-underline-offset:2px; }
.branch-caption strong { font-weight:800; }
.conditional-node .node-content { box-shadow:-5px 0 0 #e9f3ee; }
.flow-links { display:grid; gap:5px; padding-top:8px; margin-top:8px; border-top:1px solid #e6edeb; }
.flow-link { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 7px; font-size:10px; }
.flow-link a { color:var(--primary-deep); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.flow-link a:hover { color:var(--primary); }
.edge-condition { color:#63766e; }
.return-link a { color:#596da0; }
.exception-note { display:block; padding-top:7px; font-size:10px; }
.structure-warning { padding:14px; margin:0 0 22px; border:1px solid #edd39a; border-radius:10px; background:#fff9eb; color:#72551e; font-size:12px; }
.structure-warning p { margin:5px 0; }
.structure-warning ul { margin:6px 0 0; padding-left:18px; }
.canvas-footer { flex-wrap:wrap; }
.node-subprocess .node-content { border-color:#b9d7d4; background:#f6fbfa; }
.node-subprocess .node-type { color:#226a62; background:#e0f0ec; }
.node-subprocess .node-marker { color:#226a62; border-color:#a4cec5; background:#e7f4ef; }
.subprocess-summary { margin-top:9px; font-size:12px; line-height:1.55; color:#465e58; }
.subprocess-summary p { margin:6px 0 0; white-space:pre-line; }
.subprocess-context { color:#547970; font-size:11px; font-weight:700; }
.subprocess-goal strong { color:#226a62; }
.subprocess-exception { padding:8px 10px; border-left:2px solid #d6be86; background:#fcf9f1; border-radius:0 6px 6px 0; color:#74613d; font-size:11px; }
.subprocess-reuse { margin-top:10px; padding-top:8px; border-top:1px solid #dce9e5; font-size:11px; }
.subprocess-reuse summary { cursor:pointer; color:#226a62; }
.subprocess-reuse summary svg { vertical-align:-2px; margin-right:3px; }
.subprocess-reuse summary:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.subprocess-reuse ul { margin:6px 0 0; padding-left:18px; }
.subprocess-reuse a { text-decoration:underline; text-underline-offset:2px; }
.node-role { width:max-content; max-width:100%; margin-top:7px; padding:3px 7px; display:flex; align-items:center; gap:5px; border:1px solid #cce1dc; border-radius:999px; color:#315f59; background:#f1f8f6; font-size:10px; line-height:1.2; }
.node-role svg { flex:0 0 13px; }
.node-role span { min-width:0; overflow-wrap:anywhere; font-weight:700; }
.node-role small { padding-left:5px; border-left:1px solid #cce1dc; color:#70827e; font-size:8px; text-transform:uppercase; white-space:nowrap; }
.node-role.role-external { color:#52618a; border-color:#d6dcef; background:#f6f7fc; }
.node-role.role-external small { border-color:#d6dcef; }
.node-role.role-legacy { border-style:dashed; color:#667570; background:#fafcfb; }
.node-role.role-missing { color:#8b512d; border-color:#e6c6ad; background:#fff8f1; }
.node-role.inactive { opacity:.68; text-decoration:line-through; }
.role-assignment { position:relative; width:max-content; max-width:100%; margin-top:6px; }
.role-assignment>summary { cursor:pointer; color:var(--primary); font-size:9px; font-weight:800; list-style:none; }
.role-assignment>summary::-webkit-details-marker { display:none; }
.role-assignment>summary:before { content:'✎'; margin-right:4px; }
.role-assignment-panel { position:relative; z-index:2; width:280px; max-width:100%; margin-top:7px; padding:11px; border:1px solid #cfe0dc; border-radius:10px; background:#f9fcfb; box-shadow:0 8px 22px rgba(20,47,45,.1); }
.role-select-form { display:grid; grid-template-columns:1fr auto; gap:7px; align-items:end; }
.role-select-form label { grid-column:1/-1; display:block; margin-bottom:0; color:#4e6262; font-size:9px; font-weight:800; }
.role-select-form .button,.inline-role-create .button { min-height:34px; padding:8px 10px; }
.role-empty-hint { margin:7px 0 0; color:var(--muted); font-size:9px; }
.inline-role-create { margin-top:9px; padding-top:8px; border-top:1px solid var(--line); }
.inline-role-create form { margin-top:9px; }
@media (max-width:520px) { .process-flow { --flow-indent:14px; } }
