[data-demo-flow]{container:fl/inline-size;min-width:0;color:var(--text);
--fl-ink:var(--text,#18191b);--fl-mute:var(--text-muted,#4d5057);--fl-edge:var(--border,#e2e4e9);--fl-inner:var(--border-inner,#eaecf0);
--fl-fill:var(--accent-soft,#f1f1f2);--fl-card:var(--surface,#fff);--fl-ok:var(--pos,#0f6b30);--fl-ok-tint:var(--pos-soft,#e8f5ed);
--fl-ok-edge:rgba(15,107,48,.15);--fl-ember:var(--mark-ember,#fd590b);--fl-ember-tint:#ffe9dd;--fl-etext:rgb(196,62,0);
--fl-e20:rgba(253,89,11,.2);--fl-frame:#e7e9ed;--fl-wire:rgba(24,25,27,.18);--fl-track:rgba(24,25,27,.1);--fl-dots:rgba(24,25,27,.16)}
[data-demo-flow] *,[data-demo-flow] *::before,[data-demo-flow] *::after{box-sizing:border-box}
[data-demo-flow] :is(p,h1,h2,h3,ol,ul,dl,dd){margin:0;padding:0}
[data-demo-flow] :is(ol,ul){list-style:none}
[data-demo-flow] .fl-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
[data-demo-flow] .fl{display:flex;flex-direction:column;gap:var(--spacing-stack,1rem);min-width:0}
/* the page head: the app's (its glyph seat, 22px title, the meta line in body-sm, the primary action at the right from a
   30rem head, under the title below it) */
[data-demo-flow] .fl-head{container:flh/inline-size;min-width:0}
[data-demo-flow] .fl-hrow{display:flex;flex-direction:column;gap:12px}
@container flh (width >= 30rem){[data-demo-flow] .fl-hrow{flex-direction:row;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px}}
[data-demo-flow] .fl-hd{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1 1 50%}
[data-demo-flow] .fl-seat{display:flex;flex:none;align-items:center;height:1.8rem;color:var(--fl-ink)}
[data-demo-flow] .fl-seat svg{width:20px;height:20px}
[data-demo-flow] .fl-hw{display:flex;flex-direction:column;min-width:0}
[data-demo-flow] .fl-h1{min-width:0;font-size:1.375rem;line-height:1.8rem;letter-spacing:-.02em;font-weight:800;color:var(--fl-ink);overflow-wrap:anywhere}
[data-demo-flow] .fl-h1--rec{font-weight:500}
[data-demo-flow] .fl-hm{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-top:4px;font-size:.78125rem;line-height:1.15rem;color:var(--fl-mute)}
[data-demo-flow] .fl-mi{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
[data-demo-flow] .fl-mi svg{flex:none;width:14px;height:14px}
[data-demo-flow] .fl-ha{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%}
/* the app's primary button (accent-strong, the control height, the medium corner, its own shadow; 44px on a touch screen) */
[data-demo-flow] .fl-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--control-h,2rem);padding:0 12px;border:1px solid var(--accent-strong,#1a1a1a);border-radius:var(--radius-md,.5rem);background:var(--accent-strong,#1a1a1a);color:var(--accent-strong-fg,#fff);box-shadow:var(--shadow-btn);font:inherit;font-size:.78125rem;line-height:1;font-weight:500;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
[data-demo-flow] .fl-btn:hover{border-color:var(--accent-strong-hover,#000);background:var(--accent-strong-hover,#000)}
[data-demo-flow] .fl-btn:focus-visible{outline:2px solid var(--accent,#1a1a1a);outline-offset:2px}
@media (pointer:coarse){[data-demo-flow] .fl-btn{min-height:44px;padding:0 16px;font-size:.875rem}}
@media (prefers-reduced-motion:no-preference){[data-demo-flow] .fl-btn{transition:background-color var(--duration-sm,160ms) var(--ease-out-quint,ease-out),border-color var(--duration-sm,160ms) var(--ease-out-quint,ease-out),transform var(--duration-sm,160ms) var(--ease-out-quint,ease-out)}[data-demo-flow] .fl-btn:active{transform:scale(.98)}}
/* the status pill: the app's (the pill tokens, the small corner), at 12px */
[data-demo-flow] .fl-pill{display:inline-flex;align-items:center;width:fit-content;height:22px;padding:0 7px;border:1px solid var(--pill-neutral-edge,var(--border));border-radius:var(--radius-sm,.375rem);background:var(--pill-neutral-fill,var(--surface-2));color:var(--pill-neutral-ink,var(--text-muted));font-size:.75rem;line-height:1;font-weight:500;letter-spacing:.01em;white-space:nowrap}
[data-demo-flow] .fl-pill[data-tone=pos]{border-color:var(--pill-pos-edge,transparent);background:var(--pill-pos-fill,var(--pos-soft));color:var(--pill-pos-ink,var(--pos))}

[data-page-archetype]:has(> * > [data-demo-flow]){max-width:var(--container-app,1440px)}
[data-demo-flow] .fl-back{display:inline-flex;width:fit-content;align-items:center;gap:6px;margin-bottom:-8px;border-radius:var(--radius-md,.5rem);font-size:.78125rem;line-height:1.15rem;color:var(--fl-mute);text-decoration:none}
[data-demo-flow] .fl-back svg{width:14px;height:14px}
[data-demo-flow] .fl-back:hover{color:var(--fl-ink)}
[data-demo-flow] .fl-back:focus-visible{outline:2px solid var(--accent,#1a1a1a);outline-offset:2px}
@media (pointer:coarse){[data-demo-flow] .fl-back{min-height:32px}}
[data-demo-flow] .fl-board{display:flex;flex-direction:column;gap:12px;min-width:0}
/* the canvas: a white panel with the hero's dotted ground; the engine (demo-flow.js) places the cards in it, sets its
   height and, where the window leaves it room, centres the drawing in the height given here */
[data-demo-flow] .fl-cv{position:relative;isolation:isolate;min-width:0;border:1px solid var(--card-line,var(--border));border-radius:var(--card-corner,1rem);background-color:var(--fl-card);background-image:radial-gradient(circle,var(--fl-dots) 1px,transparent 1.3px);background-size:16px 16px;background-position:0 0;box-shadow:var(--card-rest);overflow:hidden;overflow:clip;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media (width >= 64rem){[data-demo-flow] .fl-cv{min-height:clamp(28rem,calc(100vh - 12.5rem),46rem)}}
/* on a phone the canvas runs to the screen's edges, as the hero's does */
@media (width < 40rem){[data-demo-flow] .fl-cv{margin-inline:-16px;border-left:0;border-right:0;border-radius:0;box-shadow:none}}
[data-demo-flow] .fl-wires{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}
[data-demo-flow] .fl-wires path{fill:none;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}
[data-demo-flow] .fl-w-base,[data-demo-flow] .fl-w-chev{stroke:var(--fl-track)}
[data-demo-flow] .fl-w-idle,[data-demo-flow] .fl-w-chevidle{stroke:var(--fl-wire)}
[data-demo-flow] .fl-w-idle{stroke-dasharray:4 4;stroke-linecap:butt}
[data-demo-flow] .fl-w-lit,[data-demo-flow] .fl-w-chevlit{stroke:var(--fl-ember)}
/* before the engine runs (or without it) the steps stand in the stylesheet's own arrangement: the flow's three columns
   where it has the width, a column down the middle where it has not */
[data-demo-flow] .fl-nodes{position:static;margin:0;padding:0;list-style:none}
[data-demo-flow] .fl-cv:not(.fl-placed) .fl-nodes{display:flex;flex-direction:column;align-items:center;gap:40px;padding:40px 16px}
[data-demo-flow] .fl-cv:not(.fl-placed) .fl-node{width:min(100%,20rem)}
/* with scripting on, that arrangement is not painted for the frame or two before the engine places the cards (a second
   later it shows anyway, so a screen whose script never arrives still reads) */
@media (scripting:enabled) and (prefers-reduced-motion:no-preference){[data-demo-flow] .fl-cv:not(.fl-placed) .fl-nodes{visibility:hidden;animation:fl-reveal 0s 1s forwards}}
@keyframes fl-reveal{to{visibility:visible}}
@container fl (width >= 60rem){
[data-demo-flow] .fl-cv:not(.fl-placed) .fl-nodes{display:grid;grid-template-columns:296px 256px 240px;grid-template-areas:"trigger . clare" "draft if send" ". if update";justify-content:space-evenly;align-items:start;gap:40px 64px;padding:96px 32px}
[data-demo-flow] .fl-cv:not(.fl-placed) .fl-node{width:auto}
[data-demo-flow] .fl-n-trigger{grid-area:trigger}[data-demo-flow] .fl-n-draft{grid-area:draft}[data-demo-flow] .fl-n-if{grid-area:if}[data-demo-flow] .fl-n-clare{grid-area:clare}[data-demo-flow] .fl-n-send{grid-area:send}[data-demo-flow] .fl-n-update{grid-area:update}}
/* each card is the hero's window: a grey frame with an even margin round a white page, its kind and its status chips in
   the frame's top strip */
[data-demo-flow] .fl-node{position:relative;z-index:1;min-width:0;padding:34px 6px 6px;background:var(--fl-frame);border-radius:12px;box-shadow:0 14px 30px -18px rgba(16,24,40,.24),0 1px 3px rgba(16,24,40,.07);color:var(--fl-ink);transition:box-shadow 240ms linear;touch-action:pan-y pinch-zoom;outline:0}
[data-demo-flow] .fl-placed .fl-node{position:absolute;left:0;top:0}
[data-demo-flow] .fl-node.fl-lift{box-shadow:0 20px 40px -16px rgba(16,24,40,.24),0 6px 14px -6px rgba(16,24,40,.12)}
[data-demo-flow] .fl-node:focus-visible{box-shadow:0 0 0 2px var(--fl-card),0 0 0 4px var(--accent,#1a1a1a),0 14px 30px -18px rgba(16,24,40,.24)}
@media (hover:hover) and (pointer:fine){[data-demo-flow] .fl-grab .fl-node{cursor:grab}[data-demo-flow] .fl-grabbing,[data-demo-flow] .fl-grabbing .fl-node{cursor:grabbing}}
[data-demo-flow] .fl-page{background:var(--fl-card);border-radius:6px}
[data-demo-flow] .fl-nh{display:flex;align-items:center;gap:12px;min-height:72px;padding:16px}
[data-demo-flow] .fl-nt{display:flex;flex-direction:column;min-width:0}
[data-demo-flow] .fl-nn{font-size:14px;line-height:20px;font-weight:600;letter-spacing:-.005em;color:var(--fl-ink);text-wrap:balance}
[data-demo-flow] .fl-ns{font-size:12.5px;line-height:20px;color:var(--fl-mute);text-wrap:balance}
[data-demo-flow] .fl-nw{white-space:nowrap}
[data-demo-flow] .fl-well{position:relative;flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--fl-fill);color:var(--fl-ink)}
[data-demo-flow] .fl-well>svg,[data-demo-flow] .fl-wl svg{width:16px;height:16px}
[data-demo-flow] .fl-wl{--pd-show:grid;position:absolute;inset:0;place-items:center;border-radius:inherit;background:var(--fl-ember-tint);color:var(--fl-etext)}
[data-demo-flow] .fl-av{position:relative;isolation:isolate;flex:none;width:28px;height:28px}
[data-demo-flow] .fl-av img{display:block;width:28px;height:28px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1px rgba(24,25,27,.08);-webkit-user-drag:none}
[data-demo-flow] .fl-avr{--pd-show:block;position:absolute;z-index:-1;inset:-4px;border-radius:50%;background:var(--fl-ember-tint)}
[data-demo-flow] .fl-kind,[data-demo-flow] .fl-chips{position:absolute;top:6px;display:flex;gap:6px;pointer-events:none}
[data-demo-flow] .fl-kind{left:6px}
[data-demo-flow] .fl-chips{right:6px}
[data-demo-flow] .fl-chip{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:6px;border:1px solid transparent;font-size:12px;line-height:16px;font-weight:500;white-space:nowrap}
[data-demo-flow] .fl-chip svg{flex:none;width:11px;height:11px}
[data-demo-flow] .fl-kind .fl-chip{background:var(--fl-ink);border-color:var(--fl-ink);color:var(--fl-card)}
[data-demo-flow] .fl-chip--ok{padding-left:6px;background:var(--fl-ok-tint);border-color:var(--fl-ok-edge);color:var(--fl-ok)}
[data-demo-flow] .fl-chip--need{--pd-show:inline-flex;gap:5px;padding-left:7px;background:var(--fl-ember-tint);border-color:var(--fl-e20);color:var(--fl-ink)}
[data-demo-flow] .fl-dot{display:block;flex:none;width:6px;height:6px;border-radius:50%;background:var(--fl-ember)}
[data-demo-flow] .fl-ok{display:grid;place-items:center;flex:none;width:18px;height:18px;border-radius:50%;background:var(--fl-ok-tint);border:1px solid var(--fl-ok-edge);color:var(--fl-ok)}
[data-demo-flow] .fl-ok svg{width:11px;height:11px}
[data-demo-flow] .fl-port{position:absolute;z-index:2;display:none;width:8px;height:8px;border-radius:50%;border:1.5px solid var(--fl-wire);background:var(--fl-card);pointer-events:none}
[data-demo-flow] .fl-port-use{display:block}
[data-demo-flow] .fl-port-go{border-color:var(--fl-ember)}
[data-demo-flow] .fl-br{display:flex;flex-direction:column;padding:4px 16px 6px;border-top:1px solid var(--fl-inner)}
[data-demo-flow] .fl-bi{position:relative;isolation:isolate;display:flex;align-items:center;gap:10px;min-height:40px;font-size:13px;line-height:18px;font-weight:500;color:var(--fl-ink)}
[data-demo-flow] .fl-bi+.fl-bi{border-top:1px solid var(--fl-inner)}
[data-demo-flow] .fl-bg{display:grid;place-items:center;flex:none;width:16px;height:16px;color:var(--fl-mute)}
[data-demo-flow] .fl-bg svg{width:16px;height:16px}
[data-demo-flow] .fl-bl{flex:1;min-width:0}
[data-demo-flow] .fl-bi--no{color:var(--fl-mute)}
[data-demo-flow] .fl-hl{--pd-show:block;position:absolute;z-index:-1;inset:0 -8px;border-radius:8px;background:var(--fl-ok-tint);border:1px solid var(--fl-ok-edge)}
/* the phone puts the If's False row first, on the side its dashed line leaves from */
[data-demo-flow] .fl-l-phone .fl-bi--no{order:-1;border-bottom:1px solid var(--fl-inner)}
[data-demo-flow] .fl-l-phone .fl-bi+.fl-bi{border-top:0}
/* THE RUN (the hero's): the finished state is the default; while the engine plays the last run, a part waiting for its
   cue is invisible (keeping its place), a passing state shows until it is retired, and a lit wire draws along its path */
[data-demo-flow] .fl-tr{display:none}
[data-demo-flow] .fl-armed .fl-tr:not(.fl-off){display:var(--pd-show,inline)}
[data-demo-flow] .fl-armed .fl-swap:not(.fl-on){display:none}
[data-demo-flow] .fl-armed [data-pd-on]:not(.fl-on){opacity:0}
[data-demo-flow] .fl-armed [data-pd-on].fl-on{animation:fl-land .34s cubic-bezier(.2,.8,.2,1) both}
[data-demo-flow] .fl-armed .fl-ok[data-pd-on].fl-on{animation-name:fl-pop;animation-duration:.4s}
[data-demo-flow] .fl-armed .fl-wl.fl-on,[data-demo-flow] .fl-armed .fl-avr.fl-on,[data-demo-flow] .fl-armed .fl-hl.fl-on{animation-name:fl-fade}
[data-demo-flow] .fl-armed :is(.fl-hl,.fl-wl,.fl-avr).fl-off{display:var(--pd-show,inline);animation:fl-out .18s ease-out both}
[data-demo-flow] .fl-armed .fl-w-lit{stroke-dasharray:1 1;stroke-dashoffset:1}
[data-demo-flow] .fl-armed .fl-w-lit.fl-on{animation:fl-draw var(--pd-l,.4s) cubic-bezier(.45,.05,.3,1) both}
[data-demo-flow] .fl-armed .fl-w-chevlit{opacity:0}
[data-demo-flow] .fl-armed .fl-w-chevlit.fl-on{animation:fl-fade .14s linear both}
[data-demo-flow] .fl-armed .fl-port-go:not(.fl-on){border-color:var(--fl-wire)}
[data-demo-flow] .fl-armed .fl-port-go.fl-on{animation:fl-port .3s ease-out both}
@keyframes fl-land{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes fl-pop{0%{opacity:0;transform:scale(.4)}60%{opacity:1;transform:scale(1.12)}100%{opacity:1;transform:scale(1)}}
@keyframes fl-fade{from{opacity:0}to{opacity:1}}
@keyframes fl-out{to{opacity:0}}
@keyframes fl-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes fl-port{from{border-color:var(--fl-wire);transform:scale(1)}50%{border-color:var(--fl-ember);transform:scale(1.35)}to{border-color:var(--fl-ember);transform:scale(1)}}
/* the caption: what the two kinds of line mean, and what a card does when it is picked up */
[data-demo-flow] .fl-cap{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;min-height:20px;font-size:.75rem;line-height:1.1rem;color:var(--fl-mute)}
[data-demo-flow] .fl-lg{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
[data-demo-flow] .fl-lg svg{display:block;flex:none;width:20px;height:8px;overflow:visible}
[data-demo-flow] .fl-lg-lit{fill:none;stroke:var(--fl-ember);stroke-width:1.5;stroke-linecap:round}
[data-demo-flow] .fl-lg-idle{fill:none;stroke:var(--fl-wire);stroke-width:1.5;stroke-dasharray:4 4}
[data-demo-flow] .fl-hint{margin-left:auto}
[data-demo-flow] .fl-hint-touch{display:none}
@media (pointer:coarse){[data-demo-flow] .fl-hint-touch{display:inline}[data-demo-flow] .fl-hint-fine{display:none}}
@media (scripting:none){[data-demo-flow] .fl-hint{display:none}}
@media (width < 40rem){[data-demo-flow] .fl-hint{margin-left:0;flex-basis:100%}}
@media (prefers-reduced-motion:reduce){[data-demo-flow] .fl-cv,[data-demo-flow] .fl-cv *{animation:none!important;transition:none!important}}