/* Flows (da/flows.html): the page's own cards. Preview only. */
.fw-hd{display:flex;align-items:center;gap:10px}.fw-hd .v-chip{margin-left:auto}
.fw-t{font:500 22px/1.15 var(--serif);letter-spacing:-.01em;color:#1A2233}
.fw-on{margin-left:auto;display:inline-flex;align-items:center;gap:7px;font-style:normal;font-size:12.5px;font-weight:600;color:#1A2233}

/* a node: a pill with its icon */
.fw-n{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px 0 5px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px #DCE6DF,0 6px 14px -10px rgba(8,50,30,.35);font-size:12.5px;font-weight:550;color:#1A2233;white-space:nowrap}
.fw-n>.hi{width:28px;height:28px;border-radius:50%;background:#EEF4F0;color:#00693E;font-size:15px;flex:none}
.fw-n.t{background:#00693E;color:#fff;box-shadow:0 8px 18px -10px rgba(0,105,62,.6)}.fw-n.t>.hi{background:rgba(255,255,255,.16);color:#fff}
.fw-err{height:32px;background:#FAFAF8;box-shadow:0 0 0 1px #E2E4DE;border:0;color:#5B6660;font-weight:500;font-size:12px}
.fw-err>.hi{width:24px;height:24px;background:#F3F1EC;color:#8A938D;font-size:13px}.fw-err b{color:#B42330;font-weight:600}

/* the hero canvas */
.vc.w-wide[data-ms-card=flows_canvas]{width:min(620px,100%);text-align:left}
.ms-hero-obj .vc.w-wide[data-ms-card=flows_canvas]{left:auto;right:8px;top:40px}
.fw-cv{position:relative;height:352px;margin-top:14px;border-radius:18px;background:#FAFBF9 radial-gradient(circle,#DFE5E0 1px,transparent 1.4px) 0 0/16px 16px}
.fw-ln{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.fw-ln path{fill:none;stroke:#9CCFB1;stroke-width:1.6;stroke-dasharray:2 5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.fw-ln path.a{stroke:var(--ks-blue-2)}.fw-ln path.b{stroke:var(--ks-violet-2)}.fw-ln path.e{stroke:#CBD2CC}
.fw-n{--lb:var(--ks-green-bg);--li:var(--ks-green-ink)}.fw-n.a{--lb:var(--ks-blue-bg);--li:var(--ks-blue-ink)}.fw-n.b{--lb:var(--ks-violet-bg);--li:var(--ks-violet-ink)}
.fw-n.a>.hi,.fw-n.b>.hi{background:var(--lb);color:var(--li)}
.fw-cv>.fw-n{position:absolute;left:calc(var(--x) * 1%);top:calc(var(--y) * 1px);transform:translate(-50%,-50%);z-index:1}
.fw-br{display:none}
/* effect: the run passes through, node by node */
.ms-fx-steps.in .fw-cv>.fw-n:not(.fw-err){animation:fwDim .35s ease-out both;animation-delay:calc(.8s + var(--s) * .32s)}
.ms-fx-steps.in .fw-cv>.fw-n:not(.fw-err):not(.t)>.hi{animation:fwLit .35s ease-out both;animation-delay:calc(.8s + var(--s) * .32s)}
.ms-fx-steps.in .fw-err{animation:fwDim .35s ease-out both;animation-delay:2.2s}
@keyframes fwDim{from{opacity:.42}to{opacity:1}}
@keyframes fwLit{from{background:#F1F3F0;color:#A3ACA6}to{background:var(--lb);color:var(--li)}}

/* the builder */
.vc.w-wide[data-ms-card=flows_builder]{width:min(600px,100%)}
.fw-bd{display:grid;grid-template-columns:168px minmax(0,1fr);gap:14px;margin-top:14px}
.fw-pal small{display:block;margin:0 0 8px 2px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#7A857F}
.fw-pal ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.fw-pal li{display:flex;align-items:center;gap:8px;height:36px;padding:0 10px 0 5px;border-radius:12px;background:#F6F8F5;font-size:12.5px;font-weight:550}
.fw-pal li>.hi{width:26px;height:26px;border-radius:8px;background:#fff;color:#5B6660;font-size:14px;flex:none}
.fw-pal li.on{background:#fff;box-shadow:0 0 0 1.5px #5CC08A}.fw-pal li.on>.hi{background:#E3F2E9;color:#00693E}
.fw-mc{display:grid;justify-items:center;align-content:start;padding:16px 12px;border-radius:16px;background:#FAFBF9 radial-gradient(circle,#DFE5E0 1px,transparent 1.4px) 0 0/16px 16px}
.fw-c{display:block;width:0;height:16px;border-left:1.6px dotted #9CCFB1}
.fw-slot{display:grid;place-items:center;min-width:176px;height:56px;padding:0 9px;border-radius:999px;border:1.5px dashed #9CCFB1;background:rgba(227,242,233,.5)}
.fw-add{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 6px;border-radius:999px;box-shadow:0 0 0 1px #E2E4DE;background:#fff;font-size:12px;color:#7A857F}.fw-add .hi{font-size:14px}

/* the run log */
.vc.w-wide[data-ms-card=flows_log]{width:min(440px,100%)}
.fw-lh{display:flex;align-items:center;gap:12px}.fw-lh .v-av{width:44px;height:44px}.fw-lh>span{display:grid;gap:2px}.fw-lh small{font-size:12.5px;color:#5B6660}
.fw-log{list-style:none;margin:14px 0 0;padding:0}
.fw-log li{display:grid;grid-template-columns:92px 28px minmax(0,1fr);align-items:center;gap:10px;padding:9px 0;border-top:1px solid #F0EEE9;font-size:13px}
.fw-log time{font-size:12px;color:#7A857F;font-variant-numeric:tabular-nums;white-space:nowrap}
.fw-log li>.hi{width:28px;height:28px;border-radius:50%;background:#F1F3F0;color:#5B6660;font-size:14px}
.fw-log li>.hi.ring{width:28px;height:28px;background:none;box-shadow:inset 0 0 0 1.5px #C9CFC9;color:transparent}
.fw-log li.fw-tk.d>.hi{background:#E3F2E9;font-size:18px}
.fw-log li>.v-av{width:28px;height:28px}
.fw-log span{display:grid;gap:1px;min-width:0}.fw-log b{font-weight:600}.fw-log small{font-size:11.5px;color:#7A857F}
.fw-log li.fw-skip{border-top:1.5px dotted #D3D8D2;color:#8A938D}.fw-log li.fw-skip b{font-weight:500;color:#7A857F}
.fw-log li.fw-skip>.hi{background:none;box-shadow:inset 0 0 0 1.5px #E2E4DE;color:#A3ACA6}

/* the example section: the steps beside the log */
.fw-exg{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(32px,5vw,80px);align-items:start;margin-top:clamp(28px,3vw,40px)}
.fw-exg>.ms-panel{margin-top:0;position:sticky;top:96px}
.stepl.fw-stepl{grid-template-columns:1fr;gap:0;border-top:0;margin:0}
.stepl.fw-stepl>li{display:block;position:relative;padding:18px 0 18px 48px;border-radius:0;background:none;box-shadow:none;border-top:1px solid var(--line)}
.stepl.fw-stepl>li:first-child{border-top:0;padding-top:4px}
.stepl.fw-stepl>li::before{position:absolute;left:0;top:23px}.stepl.fw-stepl>li:first-child::before{top:9px}
.stepl.fw-stepl>li>b{display:block;font-size:19px}.stepl.fw-stepl>li>span{display:block;margin-top:6px;font-size:15px}

/* the overview of runs */
.vc.w-wide[data-ms-card=flows_runs]{width:min(440px,100%)}
.fw-kpi{margin-top:12px}.fw-kpi b{font-variant-numeric:tabular-nums}
.fw-kpi .fw-bad span{color:#B42330;font-weight:600}
.fw-runs{list-style:none;margin:12px 0 0;padding:0}
.fw-runs li{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #F0EEE9}
.fw-rn{display:grid;gap:2px;min-width:0}.fw-rn b{font-size:13.5px;font-weight:600}.fw-rn small{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#5B6660}
.fw-rn small .hi{font-size:13px;color:#00693E}
.fw-esc{justify-self:start;margin-top:4px;font-style:normal;font-size:11.5px;font-weight:600;padding:3px 8px;border-radius:99px;background:#FCEFDD;color:#8F5300}
.fw-rp{display:grid;justify-items:end;gap:4px}.fw-rp small{font-size:11.5px;color:#7A857F;font-variant-numeric:tabular-nums}
.fw-pips{display:flex;gap:3px}.fw-pips i{width:12px;height:6px;border-radius:99px;background:#E4E9E3}.fw-pips i.on{background:#5CC08A}
.fw-runs li.done .fw-pips i.on{background:#00693E}

@media (max-width:1240px){.ms-hero-obj .vc.w-wide[data-ms-card=flows_canvas]{right:0;width:min(560px,100%)}}
@media (max-width:1040px){.fw-exg{grid-template-columns:1fr}.fw-exg>.ms-panel{position:relative;top:auto;order:-1}}
@media (max-width:720px){
  /* the canvas goes vertical: branch A, then branch B, on one dotted rail */
  .fw-cv{height:auto;display:grid;justify-items:start;gap:10px;padding:16px 12px 16px 14px;background-image:none}
  .fw-cv::before{content:"";position:absolute;left:31px;top:30px;bottom:30px;border-left:1.6px dotted #9CCFB1}
  .fw-ln{display:none}
  .fw-cv>.fw-n{position:relative;left:auto;top:auto;transform:none;max-width:100%}
  .fw-cv>.fw-n>span{overflow:hidden;text-overflow:ellipsis}
  .fw-br{display:flex;align-items:center;gap:7px;margin:6px 0 0 48px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#7A857F}
  .fw-err{margin-left:0}
  .fw-bd{grid-template-columns:1fr}
  .fw-pal ul{display:flex;flex-wrap:wrap;gap:6px}.fw-pal li{height:32px}
  .fw-slot{min-width:0;width:100%;max-width:220px}
  .fw-log li{grid-template-columns:76px 28px minmax(0,1fr);gap:8px}.fw-log time{font-size:11px;white-space:normal}
  .fw-t{font-size:20px}
  .stepl.fw-stepl>li{padding-left:40px}
}
@media (prefers-reduced-motion:reduce){
  .ms-fx-steps.in .fw-n,.ms-fx-steps.in .fw-n>.hi{animation:none;opacity:1}
}
.fw-log li:first-child,.fw-runs li:first-child{border-top:0}

/* 22-10 round 3: Mikkel's run as three cards on the thread, stacked down the sand panel (Udløser → Trin → Færdig) */
.ms-panel.fw-run3 .ms-panel-in{flex-direction:column;align-items:center;row-gap:60px}
.ms-panel.fw-run3 .vc.w-wide{width:min(400px,100%)}
.vc[data-ms-card=flows_start] .fw-lh,.vc[data-ms-card=flows_done] .fw-fin{margin-top:12px}
.fw-lh .v-av{flex:none}.fw-lh b{font-weight:600}
.fw-why{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:9px 11px;border-radius:12px;background:#F1F8F4;font-size:12.5px;font-weight:600;color:#1F4D36}
.fw-why .hi{flex:none;font-size:16px;color:#00A550}
.fw-fin{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:12.5px;color:#5B6660}
.fw-fin .v-chip{display:inline-flex;align-items:center;gap:4px}.fw-fin .v-chip .hi{font-size:13px}
.fw-skip2{display:flex;align-items:center;gap:10px;margin:12px 0 0;padding-top:10px;border-top:1.5px dotted #D3D8D2;font-size:13px;color:#8A938D}
.fw-skip2>.hi{flex:none;width:28px;height:28px;border-radius:50%;box-shadow:inset 0 0 0 1.5px #E2E4DE;color:#A3ACA6;font-size:14px}
.fw-skip2 span{display:grid;gap:1px}.fw-skip2 b{font-weight:500;color:#7A857F}.fw-skip2 small{font-size:11.5px;color:#8A938D}
@media (max-width:1040px){.ms-panel.fw-run3 .ms-panel-in .vc:nth-child(3){display:block}}
@media (max-width:720px){#example .ms-panel.fw-run3 .ms-panel-in{row-gap:68px!important}}
/* the builder's head: the title wraps, the chip keeps its word */
.fw-hd .v-chip,.fw-hd .fw-on{flex:none;white-space:nowrap}
