/* ---------- Flow diagrams in the Axoniq Platform's workflow style ----------
   The diagram copies the Axoniq Platform's workflow graph (Vue Flow): Untitled UI tokens, task cards with a
   kind line and a status pill, circle events, a diamond gateway, gray smoothstep edges, an 18px dot grid. */

@font-face { font-family: "FL Inter"; src: url(/fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "FL Inter"; src: url(/fonts/inter-500.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }

.ui-flow .ui { font: 400 14px/20px "FL Inter", Inter, system-ui, sans-serif; color: #181d27; background: #f5f5f5; }
.wf { position: absolute; inset: 0; background: radial-gradient(circle, #d5d7da 1px, transparent 1.2px) 0 0 / 18px 18px, #fafafa; }
.wf p { margin: 0; }
.wf-edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.wf-edges path { fill: none; stroke: #a4a7ae; stroke-width: 1.5; marker-end: url(#wf-arrow); }
.wf-edges path.f { stroke: #7a5af8; stroke-width: 2; stroke-dasharray: 6 4; marker-end: url(#wf-arrow-f); }
.wf-elabel { position: absolute; transform: translate(-50%, -50%); font: 500 11px/16px "FL Inter", Inter, sans-serif; padding: 1px 7px; border-radius: 999px; background: #fff; border: 1px solid #d9d6fe; color: #5925dc; white-space: nowrap; }
.wf-elabel.ok { border-color: #abefc6; color: #067647; transform: none; }

.wf-task { position: absolute; width: 170px; height: 74px; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid #17b26a; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(10,13,18,.05); }
.wf-task .k { font-size: 12px; line-height: 16px; color: #535862; }
.wf-task .n { font-size: 14px; line-height: 18px; font-weight: 500; }
.wf-task .pill { margin-top: auto !important; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 7px 0 6px; border-radius: 999px; border: 1px solid #17b26a; color: #067647; font-size: 11px; line-height: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.wf-task .pill i { width: 6px; height: 6px; border-radius: 50%; background: #17b26a; flex: none; }
.wf-task.warn { border-color: #f79009; }
.wf-task.warn .pill { border-color: #f79009; color: #b54708; }
.wf-task.warn .pill i { background: #f79009; }

.wf-ev { position: absolute; width: 40px; height: 40px; }
.wf-ev i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1.5px solid #17b26a; background: #ecfdf3; }
.wf-ev.end i { border-width: 3.5px; display: grid; place-items: center; }
.wf-ev.end i::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #067647; }
.wf-ev span { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 130px; text-align: center; font-size: 12px; line-height: 15px; color: #414651; }

.wf-gw { position: absolute; width: 64px; height: 64px; }
.wf-gw i { position: absolute; inset: 15%; transform: rotate(45deg); border: 1.5px solid #17b26a; border-radius: 4px; background: #ecfdf3; }
.wf-gw span { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 500; white-space: nowrap; }


.wf-task.crit { border-color: #f04438; } .wf-task.crit .pill { border-color: #f04438; color: #b42318; } .wf-task.crit .pill i { background: #f04438; }
.wf-task.wait { border-color: #7a5af8; } .wf-task.wait .pill { border-color: #7a5af8; color: #5925dc; } .wf-task.wait .pill i { background: #7a5af8; }
.wf-task.idle { border-color: #d5d7da; } .wf-task.idle .pill { border-color: #d5d7da; color: #535862; } .wf-task.idle .pill i { background: #a4a7ae; }
.wf-ev.timer i { box-shadow: inset 0 0 0 2px #ecfdf3, inset 0 0 0 3.5px #17b26a; }
.wf-elabel.grey { border-color: #e9eaeb; color: #535862; }
.wf-elabel.red { border-color: #fecdca; color: #b42318; }

/* One alert, end to end (alert-example): rule card, latency chart with the state bands, event log */
.ae-card { position: absolute; background: #fff; border: 1px solid #e9eaeb; border-radius: 12px; box-shadow: 0 1px 2px rgba(10,13,18,.05); padding: 16px 18px; }
.ae-card .k { font-size: 12px; line-height: 16px; color: #535862; }
.ae-card .n { font-size: 15px; line-height: 22px; font-weight: 600; margin-top: 2px !important; }
.ae-rule { left: 24px; top: 24px; width: 290px; height: 316px; }
.ae-rule dl { margin: 14px 0 0; }
.ae-rule dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid #f0f1f3; }
.ae-rule dt { font-size: 13px; line-height: 18px; color: #717680; }
.ae-rule dd { margin: 0; font-size: 13px; line-height: 18px; font-weight: 500; color: #181d27; }
.ae-sev { display: inline-flex; align-items: center; gap: 5px; padding: 0 7px 0 6px; border-radius: 999px; border: 1px solid #fecdca; background: #fef3f2; color: #b42318; font-size: 11px; line-height: 16px; }
.ae-sev i { width: 6px; height: 6px; border-radius: 50%; background: #f04438; }
.ae-chart { left: 334px; top: 24px; width: 822px; height: 316px; padding-bottom: 8px; }
.ae-peak { margin-left: 8px; font-size: 12px; font-weight: 500; color: #b42318; }
.ae-chart svg { display: block; width: 784px; height: 245px; margin: 6px 0 0 -6px; font-family: "FL Inter", Inter, sans-serif; }
.ae-chart .g { stroke: #f0f1f3; stroke-width: 1; }
.ae-chart .ax { stroke: #d5d7da; stroke-width: 1; }
.ae-chart .th { stroke: #f04438; stroke-width: 1.25; stroke-dasharray: 5 4; }
.ae-chart .yl { font-size: 11px; fill: #a4a7ae; text-anchor: end; }
.ae-chart .th-l { fill: #d92d20; font-weight: 500; }
.ae-chart .xl { font-size: 11px; fill: #a4a7ae; text-anchor: middle; font-variant-numeric: tabular-nums; }
.ae-chart .bp { fill: #fffaeb; } .ae-chart .bt { fill: #fef3f2; } .ae-chart .bc { fill: #fef3f2; opacity: .5; }
.ae-chart .ar { fill: rgba(122, 90, 248, .07); }
.ae-chart .ln { fill: none; stroke: #7a5af8; stroke-width: 2; stroke-linejoin: round; }
.ae-chart .mk line { stroke: #d5d7da; stroke-dasharray: 2 3; }
.ae-chart .mk circle { fill: #fff; stroke: #7a5af8; stroke-width: 1.5; }
.ae-chart .mk circle.b { fill: #181d27; stroke: #fff; stroke-width: 2; }
.ae-chart .mk text { font-size: 10.5px; font-weight: 600; fill: #fff; text-anchor: middle; }
.ae-chart .r.in { fill: #f5f5f5; } .ae-chart .r.pe { fill: #fef0c7; } .ae-chart .r.tr { fill: #fee4e2; } .ae-chart .r.calm { fill: #fef3f2; } .ae-chart .r.re { fill: #dcfae6; }
.ae-chart .rl { font-size: 11px; font-weight: 500; text-anchor: middle; }
.ae-chart .rl.pe { fill: #b54708; } .ae-chart .rl.tr { fill: #b42318; } .ae-chart .rl.re { fill: #067647; }
.ae-log { left: 24px; top: 364px; width: 1132px; height: 332px; padding: 6px 18px; }
.ae-row { display: grid; grid-template-columns: 26px 54px 112px 1fr 250px; align-items: center; gap: 12px; height: 39px; border-top: 1px solid #f0f1f3; font-size: 13px; line-height: 18px; }
.ae-row p { color: #414651; }
.ae-row p b { font-weight: 500; color: #181d27; }
.ae-head { border-top: 0; height: 32px; font-size: 12px; color: #717680; }
.ae-head p { color: #717680; }
.ae-n:not(:empty) { width: 18px; height: 18px; border-radius: 50%; background: #181d27; color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.ae-t { color: #535862; font-variant-numeric: tabular-nums; }
.ae-st { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px 0 6px; border-radius: 999px; border: 1px solid; font-size: 11px; line-height: 18px; font-weight: 500; }
.ae-st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ae-st.pe { border-color: #fedf89; background: #fffaeb; color: #b54708; }
.ae-st.tr { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.ae-st.re { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.ae-st.in { border-color: #e9eaeb; background: #fafafa; color: #535862; }
.ae-out { display: flex; gap: 6px; align-items: center; }
.ae-out .ch { padding: 0 7px; border-radius: 6px; border: 1px solid #e9eaeb; font-size: 11px; line-height: 18px; font-weight: 500; color: #414651; }
.ae-out .none { font-size: 12px; color: #717680; }

/* ---------- Flow diagrams, refined ----------
   Quiet hairline cards with a soft shadow; status is a 3px accent bar and a dot, not a coloured outline.
   Slim open arrowheads on fine, rounded edges; small white edge tags; a faint, finer canvas grid. */
.wf { background: radial-gradient(circle, #dde1e8 0.85px, transparent 1.1px) 0 0 / 16px 16px, linear-gradient(180deg, #fcfcfd, #f7f8fa); }
.wf-edges path { stroke: #b9bfca; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.wf-edges path.f { stroke: #7a5af8; stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .85; }
.wf-edges marker path { fill: none; stroke: #9aa1ad; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wf-edges marker#wf-arrow-f path { stroke: #7a5af8; }

.wf-task { --acc: #12b76a; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; padding: 10px 12px 10px 15px; gap: 1px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 18px -10px rgba(16, 24, 40, .14); }
.wf-task::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); }
.wf-task .k { font-size: 10px; line-height: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #98a2b3; }
.wf-task .n { font-size: 14px; line-height: 19px; font-weight: 500; letter-spacing: -.01em; color: #101828; }
.wf-task .pill { border: 0; background: #f2f4f7; color: #475467; border-radius: 6px; padding: 1px 7px 1px 6px; font-size: 11px; line-height: 16px; font-weight: 500; }
.wf-task .pill i { width: 5px; height: 5px; background: var(--acc); }
.wf-task.warn { --acc: #f79009; border-color: #e4e7ec; } .wf-task.warn .pill { border: 0; color: #93370d; background: #fffaeb; }
.wf-task.crit { --acc: #f04438; border-color: #e4e7ec; } .wf-task.crit .pill { border: 0; color: #b42318; background: #fef3f2; }
.wf-task.wait { --acc: #7a5af8; border-color: #e4e7ec; } .wf-task.wait .pill { border: 0; color: #5925dc; background: #f4f3ff; }
.wf-task.idle { --acc: #d0d5dd; border-color: #e4e7ec; } .wf-task.idle .n { color: #475467; }
.wf-task.warn .pill i, .wf-task.crit .pill i, .wf-task.wait .pill i, .wf-task.idle .pill i { background: var(--acc); }

.wf-elabel { padding: 2px 8px 2px 7px; border-radius: 6px; background: #fff; border: 1px solid #e4e7ec; color: #5925dc; font-weight: 500; font-size: 11px; line-height: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06); display: inline-flex; align-items: center; gap: 5px; }
.wf-elabel::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .9; }
.wf-elabel.ok { border-color: #e4e7ec; color: #067647; }
.wf-elabel.grey { border-color: #e4e7ec; color: #667085; }
.wf-elabel.red { border-color: #e4e7ec; color: #b42318; }

.wf-ev i { border: 1.5px solid #12b76a; background: #fff; box-shadow: 0 0 0 5px rgba(18, 183, 106, .09), 0 1px 2px rgba(16, 24, 40, .06); }
.wf-ev.timer i { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4.5px #12b76a, 0 0 0 5px rgba(18, 183, 106, .09); }
.wf-ev.end i { border: 2.5px solid #101828; background: #fff; box-shadow: 0 0 0 5px rgba(16, 24, 40, .06); }
.wf-ev.end i::after { width: 9px; height: 9px; border-radius: 2px; background: #101828; }
.wf-ev span { font-size: 11.5px; line-height: 15px; color: #667085; }

.wf-gw i { border: 1.25px solid #d0d5dd; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 14px -8px rgba(16, 24, 40, .16); }
.wf-gw span { font-size: 12px; font-weight: 500; color: #344054; }
