/* Ten Goede · process diagram + e-mail preview */
.bpmn { position: relative; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--sheet); overflow: hidden; }
.bpmn-vp { position: relative; width: 100%; overflow: hidden; cursor: grab; touch-action: none; background:
  radial-gradient(circle, var(--line) 1px, transparent 1px) 0 0 / 22px 22px, var(--sunk); }
.bpmn-vp.panning { cursor: grabbing; }
.bpmn-vp:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 0; }
.bpmn-svg { display: block; font-family: var(--f-ui); user-select: none; }
.bpmn.static { border: 0; background: none; }
.bpmn.static .bpmn-svg { width: 100%; height: auto; }
.bpmn-tools { position: absolute; right: 8px; top: 8px; flex-direction: column; display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--sheet); border-radius: var(--r); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.bpmn-tools button { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-2); }
.bpmn-tools button:hover { background: var(--hover); color: var(--ink); }
.bpmn-zoomlbl { font-size: 10.5px; color: var(--ink-3); min-width: 30px; padding: 2px 0; text-align: center; font-variant-numeric: tabular-nums; }
.bpmn-legend { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 6px 10px; background: color-mix(in srgb, var(--sheet) 92%, transparent); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); font-size: 11.5px; color: var(--ink-2); max-width: calc(100% - 180px); }
.bpmn-legend i { display: inline-block; vertical-align: middle; margin-right: 5px; }
.bpmn-empty { border: 1px dashed var(--line-2); border-radius: var(--r-l); padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ink-3); }
.bpmn-empty b { color: var(--ink); }
.bpmn-empty p { max-width: 46ch; font-size: var(--t-s); }

/* lanes */
.lane-bg { fill: var(--sheet); opacity: .55; }
.lane-bg.alt { fill: var(--sunk); opacity: .7; }
.lane-head { fill: var(--sheet); }
.vp-lanes .lane-head { filter: drop-shadow(1px 0 0 var(--line)); }
.lane.sys .lane-head { fill: var(--sunk); }
.lane-line { stroke: var(--line); stroke-width: 1; }
.lane-name { font-size: 13.5px; font-weight: 600; fill: var(--ink); }
.lane-sub { font-size: 11.5px; fill: var(--ink-3); }

/* edges */
.edge path { fill: none; stroke: var(--ink-4); }
.edge.dashed path { stroke-dasharray: 5 4; }
.edge.e-warn path { stroke: var(--warn); }
.edge.e-mute path { stroke: var(--line-2); }
.edge.e-accent path { stroke: var(--accent); }
.arw { fill: var(--ink-4); }
.arw.warn { fill: var(--warn); } .arw.mute { fill: var(--line-2); } .arw.acc { fill: var(--accent); }
.edge .timer { fill: var(--sheet); stroke: var(--ink-3); stroke-width: 1.4; stroke-dasharray: none !important; }
.edge .timer-hand { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-dasharray: none !important; }
.edge-label rect { fill: var(--sheet); stroke: var(--line); }
.edge-label text { font-size: 11px; fill: var(--ink-2); font-weight: 500; }
.edge.e-warn .edge-label text { fill: var(--warn); }
.edge.e-mute .edge-label text { fill: var(--ink-4); }

/* nodes */
.node { cursor: pointer; outline: none; }
.node .shape { fill: var(--sheet); stroke: var(--line-2); stroke-width: 1.4; transition: stroke .12s, fill .12s; }
.node:hover .shape { stroke: var(--ink-3); }
.node:focus-visible .shape { stroke: var(--accent); stroke-width: 2.5; }
.node.sel .shape { stroke: var(--accent); stroke-width: 2.5; fill: var(--accent-soft); }
.node.n-start .shape { stroke: var(--ok); stroke-width: 2; }
.node.n-end .shape { stroke: var(--ink-2); stroke-width: 3.5; }
.node.n-gateway .shape { fill: var(--sheet); }
.node .g-mark { stroke: var(--ink-3); stroke-width: 2; fill: none; stroke-linecap: round; }
.n-label { font-size: 13px; font-weight: 500; fill: var(--ink); }
.g-label, .e-label { font-size: 11px; fill: var(--ink-2); }
.sys-label { font-size: 10px; fill: var(--ink-4); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.n-foot { font-size: 12px; fill: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.node.auto .shape { stroke-dasharray: 3 2; }
.node.heat-0 .shape { fill: var(--heat-0); } .node.heat-1 .shape { fill: var(--heat-1); } .node.heat-2 .shape { fill: var(--heat-2); } .node.heat-3 .shape { fill: var(--heat-3); stroke: var(--bad); }
.node.s-dim { opacity: .38; }
.node.s-unobserved .shape { stroke-dasharray: 4 3; fill: var(--sunk); }
.node.s-unobserved .n-label { fill: var(--ink-3); }
.node.s-removed .shape { stroke: var(--bad); stroke-dasharray: 4 3; fill: var(--bad-soft); }
.node.s-removed .n-label { fill: var(--bad); text-decoration: line-through; }
.node.s-ghost { opacity: .25; }
.node.c-added .shape { stroke: var(--ok); stroke-width: 2.2; fill: var(--ok-soft); }
.node.c-modified .shape { stroke: var(--warn); stroke-width: 2.2; fill: var(--warn-soft); }
.node.c-responsibility .shape { stroke: var(--info); stroke-width: 2.2; fill: var(--info-soft); }
.node.c-removed .shape { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 4 3; fill: var(--bad-soft); }
.node.sel.c-added .shape, .node.sel.c-modified .shape, .node.sel.c-responsibility .shape { stroke: var(--accent); }

.badge rect { fill: var(--ink); }
.badge text { font-size: 10.5px; font-weight: 600; fill: var(--on-ink); font-variant-numeric: tabular-nums; }
.badge .b-ic { fill: none; stroke: var(--on-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.badge.b-bad rect { fill: var(--bad); } .badge.b-bad text { fill: #fff; } .badge.b-bad .b-ic { stroke: #fff; }
.badge.b-ok rect { fill: var(--ok); } .badge.b-ok text { fill: #fff; } .badge.b-ok .b-ic { stroke: #fff; }
.badge.b-warn rect { fill: var(--warn); } .badge.b-warn text { fill: #fff; } .badge.b-warn .b-ic { stroke: #fff; }
.badge.b-ai rect { fill: var(--ev-ai); } .badge.b-ai text { fill: #fff; } .badge.b-ai .b-ic { stroke: #fff; }
.badge.b-interview rect { fill: var(--ev-interview); } .badge.b-interview text { fill: #fff; } .badge.b-interview .b-ic { stroke: #fff; }
.badge.b-mute rect { fill: var(--mute-soft); stroke: var(--line-2); } .badge.b-mute text { fill: var(--ink-2); } .badge.b-mute .b-ic { stroke: var(--ink-2); }
.flag rect { fill: var(--bad); }
.flag text { font-size: 10.5px; font-weight: 600; fill: #fff; }
.flag.f-warn rect { fill: var(--warn); }
.flag.f-ok rect { fill: var(--ok); }
.flag.f-info rect { fill: var(--info); }
.flag.f-mute rect { fill: var(--ink-3); }

/* ── e-mail (Outlook-style preview) ─────────────────────────────────── */
.mail { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--sheet); overflow: hidden; font-size: 14px; }
.mail-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #0f6cbd; color: #fff; font-size: 12px; font-weight: 600; }
.mail-bar .chip { background: rgba(255,255,255,.18); color: #fff; }
.mail-h { padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.mail-h h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.mail-from { display: flex; align-items: flex-start; gap: 10px; }
.mail-from > div { flex: 1; min-width: 0; font-size: 13px; }
.mail-from small { display: block; color: var(--ink-3); font-size: 12px; }
.mail-b { padding: 18px 20px 20px; color: var(--ink); line-height: 1.6; }
.mail-b p + p { margin-top: 10px; }
.mail-list { list-style: disc; padding-left: 20px; margin-top: 4px; }
.mail-list li { margin: 2px 0; }
.mail-meta { margin-top: 14px; border-collapse: collapse; font-size: 13px; }
.mail-meta td { padding: 4px 16px 4px 0; vertical-align: top; }
.mail-meta td:first-child { color: var(--ink-3); white-space: nowrap; }
.mail-cta { display: inline-block; background: #0f6cbd; color: #fff !important; font-weight: 600; padding: 9px 16px; border-radius: 4px; text-decoration: none; }
.mail-cta:hover { background: #115ea3; }
.mail-sig { margin-top: 20px; color: var(--ink-2); }
.mail-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.mail-ai { display: flex; align-items: center; gap: 6px; padding: 6px 10px; margin-bottom: 14px; border-radius: 6px; background: var(--ev-ai-soft); color: var(--ev-ai); font-size: 12px; font-weight: 500; }
