/* /digital-twin/ (lab/pages/p_digital_twin.py). Sources are in the module docstring:
   match    Amperity identity resolution card (https://amperity.com/platform/identity-resolution), motion after Hightouch
            "Probabilistic matching" (https://hightouch.com/platform/identity-resolution).
   connect  Estuary "Pipeline health" panel (https://estuary.dev) with per-source logs after Svix (https://www.svix.com).
   Colours: violet for live and Squids, amber for a person's turn, green for done (MOTION-BRIEF.md). */
.erp .dt-sec { padding-block: clamp(96px, 14vh, 160px); }
.erp .dt-h { margin: 0; max-width: 20ch; text-wrap: balance; }
.erp .dt-lede { margin: 20px 0 0; max-width: 52ch; }
.erp .dt-more { margin: 24px 0 0; font-size: 15px; }
.erp .dt-more .ulink { color: #f4f3ef; }
.erp .dt-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); align-items: center; gap: clamp(40px, 6vw, 96px); }

/* ------------------------------------------------ match: Amperity card, Hightouch line draw */
.erp .dt-mx { --ok: #4ade80; --turn: #e88122; --v: #9a6bff;
  position: relative; margin: 0; width: 100%; aspect-ratio: 620 / 520; container-type: inline-size; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, rgb(154 107 255 / .16), transparent 60%), linear-gradient(180deg, rgb(30 24 54 / .95), rgb(12 10 24 / .97));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 1px 0 rgb(255 255 255 / .1), 0 30px 60px -30px rgb(0 0 0 / .95); }
.erp .dt-mx > * { position: absolute; }
.erp .dt-mx__key { left: 3.2%; top: 4%; width: 30%; margin: 0; padding: 2.2cqw 2.4cqw; list-style: none; display: grid; gap: 1.5cqw;
  border-radius: 2.2cqw; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); color: #e9e4f7; font: 500 2cqw/1.2 var(--sc-font-text); }
.erp .dt-mx__key li { display: flex; align-items: center; gap: 1.4cqw; }
.erp .dt-mx__key i { flex: none; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; }
.erp .k-exact { background: var(--ok); } .erp .k-score { background: var(--turn); } .erp .k-person { background: transparent; box-shadow: inset 0 0 0 2px var(--ok); }
.erp .dt-mx__lines { inset: 0; width: 100%; height: 100%; overflow: visible; }
.erp .dt-mx .ln { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(.65, 0, .35, 1), stroke .5s; }
.erp .dt-mx .ln-1 { stroke: var(--ok); } .erp .dt-mx .ln-2 { stroke: var(--turn); }

.erp .dt-rec { display: grid; gap: .9cqw; }
.erp .dt-rec small { color: #a59fbd; font: 600 1.75cqw/1 var(--sc-font-text); letter-spacing: .06em; text-transform: uppercase; }
.erp .dt-rec > div { display: flex; height: 6.4cqw; align-items: stretch; border-radius: 1.4cqw; background: rgb(250 248 255 / .96); box-shadow: 0 1.2cqw 3cqw -1.4cqw rgb(0 0 0 / .8); transition: opacity .6s, filter .6s; }
.erp .dt-rec span { flex: 1 1 auto; display: grid; place-items: center; padding: 0 1.6cqw; color: #1a1033; font: 500 2.15cqw/1 var(--sc-font-mono); white-space: nowrap; }
.erp .dt-rec span + span { box-shadow: -1px 0 0 #d8d1ea; }
.erp .dt-rec .dt-blank { color: #a59fbd; font-style: italic; }
.erp .r1 { left: 37.1%; top: 6%; width: 59.7%; }
.erp .r2 { left: 3.2%; top: 37.7%; width: 55%; }
.erp .r3 { left: 22.6%; top: 70%; width: 67.7%; }
.erp .dt-rec__why { display: flex; gap: 2.6cqw; margin: .4cqw 0 0; padding: 0 0 0 1.6cqw; list-style: none; color: var(--turn); font: 600 1.6cqw/1 var(--sc-font-text); letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .5s; }
.erp .dt-rec__why li::before { content: "\2191\00a0"; }

.erp .dt-dot { width: 2.6cqw; height: 2.6cqw; margin: -1.3cqw 0 0 -1.3cqw; border-radius: 50%; background: #0c0a18; box-shadow: inset 0 0 0 2px #6f6889; transition: box-shadow .5s, background .5s; }
.erp .d1 { left: 71%; top: 17.3%; } .erp .d2 { left: 50.3%; top: 40.8%; } .erp .d3 { left: 53.2%; top: 73.1%; }

.erp .dt-tag { padding: .9cqw 1.4cqw; border-radius: .8cqw; font: 600 1.8cqw/1 var(--sc-font-text); white-space: nowrap; opacity: 0; transform: translateY(.8cqw); transition: opacity .45s, transform .6s cubic-bezier(.16, 1, .3, 1), color .5s, box-shadow .5s; }
.erp .t1 { left: 19%; top: 26.5%; color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.erp .t2 { left: 64.5%; top: 55%; color: var(--turn); box-shadow: inset 0 0 0 1.5px var(--turn); }
.erp .t2 b { font-variant-numeric: tabular-nums; }

.erp .dt-ask { left: 52%; top: 86.5%; width: 44.8%; display: flex; align-items: center; gap: 1.6cqw; padding: 1.3cqw 1.8cqw; border-radius: 1.6cqw;
  background: rgb(232 129 34 / .12); box-shadow: inset 0 0 0 1px rgb(232 129 34 / .5); opacity: 0; transform: translateY(1cqw); transition: opacity .45s, transform .6s cubic-bezier(.16, 1, .3, 1), background .5s, box-shadow .5s; }
.erp .dt-av { flex: none; display: grid; place-items: center; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: #f4f3ef; color: #1a1033; font: 700 1.7cqw/1 var(--sc-font-text); }
.erp .dt-ask p { margin: 0; display: grid; gap: .6cqw; }
.erp .dt-ask b { color: #f4f3ef; font: 600 2cqw/1.1 var(--sc-font-text); }
.erp .dt-ask small { color: var(--turn); font: 500 1.7cqw/1.1 var(--sc-font-text); }
.erp .dt-one { left: 3.2%; top: 87.5%; display: grid; gap: .6cqw; padding: 1.3cqw 2cqw; border-radius: 1.6cqw; background: rgb(74 222 128 / .1); box-shadow: inset 0 0 0 1px rgb(74 222 128 / .55);
  opacity: 0; transform: translateY(1cqw); transition: opacity .5s, transform .6s cubic-bezier(.16, 1, .3, 1); }
.erp .dt-one b { color: #f4f3ef; font: 600 2.2cqw/1 var(--sc-font-display); }
.erp .dt-one span { color: var(--ok); font: 500 1.7cqw/1 var(--sc-font-text); }

/* steps: 1 exact link, 2 scored link, 3 asked, 4 confirmed, 5 one record */
.erp .dt-mx[data-step="1"] .ln-1, .erp .dt-mx[data-step="2"] .ln-1, .erp .dt-mx[data-step="3"] .ln-1, .erp .dt-mx[data-step="4"] .ln-1, .erp .dt-mx[data-step="5"] .ln-1 { stroke-dashoffset: 0; }
.erp .dt-mx[data-step="2"] .ln-2, .erp .dt-mx[data-step="3"] .ln-2, .erp .dt-mx[data-step="4"] .ln-2, .erp .dt-mx[data-step="5"] .ln-2 { stroke-dashoffset: 0; }
.erp .dt-mx:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) :is(.d1, .d2) { background: var(--ok); box-shadow: 0 0 1.6cqw rgb(74 222 128 / .7); }
.erp .dt-mx:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .t1 { opacity: 1; transform: none; }
.erp .dt-mx:is([data-step="2"], [data-step="3"]) .d3 { background: var(--turn); box-shadow: 0 0 1.6cqw rgb(232 129 34 / .7); }
.erp .dt-mx:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) :is(.t2, .dt-rec__why) { opacity: 1; transform: none; }
.erp .dt-mx:is([data-step="3"], [data-step="4"], [data-step="5"]) .dt-ask { opacity: 1; transform: none; }
.erp .dt-mx:is([data-step="4"], [data-step="5"]) .ln-2 { stroke: var(--ok); }
.erp .dt-mx:is([data-step="4"], [data-step="5"]) .d3 { background: #0c0a18; box-shadow: inset 0 0 0 2px var(--ok), 0 0 1.6cqw rgb(74 222 128 / .7); }
.erp .dt-mx:is([data-step="4"], [data-step="5"]) .t2 { color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.erp .dt-mx:is([data-step="4"], [data-step="5"]) .dt-ask { background: rgb(74 222 128 / .1); box-shadow: inset 0 0 0 1px rgb(74 222 128 / .55); }
.erp .dt-mx:is([data-step="4"], [data-step="5"]) .dt-ask small { color: var(--ok); }
.erp .dt-mx[data-step="5"] .dt-one { opacity: 1; transform: none; }

/* ------------------------------------------------ connect: Estuary health panel, Svix per-source logs */
.erp .dt-sync { margin: clamp(48px, 7vh, 88px) 0 0; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgb(36 29 62 / .94), rgb(14 11 26 / .97));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 1px 0 rgb(255 255 255 / .1), 0 30px 60px -30px rgb(0 0 0 / .95); }
.erp .dt-sync__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 26px; color: #f4f3ef; font: 600 15px/1 var(--sc-font-text); }
.erp .dt-sync__bar span { display: inline-flex; align-items: center; gap: 10px; }
.erp .dt-sync__bar i { width: 8px; height: 8px; border-radius: 50%; background: #9a6bff; box-shadow: 0 0 10px rgb(154 107 255 / .9); }
.erp .dt-sync__bar small { color: #8f88a6; font: 400 13.5px/1 var(--sc-font-text); }
.erp .dt-sync__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 12px; }
.erp .dt-src { display: grid; align-content: start; gap: 12px; padding: 18px 18px 16px; border-radius: 16px; background: rgb(255 255 255 / .035); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07); }
.erp .dt-src header { display: grid; gap: 8px; justify-items: start; }
.erp .dt-src header b { color: #f4f3ef; font: 600 16px/1.2 var(--sc-font-display); letter-spacing: -.01em; }
.erp .dt-src__eg { margin-top: -4px; color: #8f88a6; font: 400 12.5px/1.3 var(--sc-font-text); }
.erp .dt-chip { display: inline-block; padding: 5px 9px; border-radius: 999px; font: 600 12px/1 var(--sc-font-text); font-style: normal; white-space: nowrap; }
.erp .dt-chip--push { color: #c9b6ff; background: rgb(154 107 255 / .14); }
.erp .dt-chip--poll { color: #bdb6d0; background: rgb(255 255 255 / .07); }
.erp .dt-src__fresh { display: flex; align-items: center; gap: 8px; margin: 0; color: #8f88a6; font: 400 13px/1.2 var(--sc-font-text); }
.erp .dt-src__fresh b { color: #e9e4f7; font-weight: 500; font-variant-numeric: tabular-nums; }
.erp .dt-src__fresh i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; transition: box-shadow .3s; }
.erp .dt-src[data-mode="poll"] .dt-src__fresh i { background: #6f6889; }
.erp .dt-src.hit .dt-src__fresh i { box-shadow: 0 0 0 5px rgb(74 222 128 / .25), 0 0 12px rgb(74 222 128 / .9); }
.erp .dt-src__log { display: grid; align-content: start; gap: 2px; min-height: calc(4 * 46px); margin: 0; padding: 0; list-style: none; }
.erp .dt-src__log li { display: grid; gap: 3px; padding: 7px 8px; border-radius: 8px; animation: dt-in .55s cubic-bezier(.16, 1, .3, 1); }
.erp .dt-src__log li.new { background: rgb(154 107 255 / .12); }
.erp .dt-src__log li:nth-child(n+3) { opacity: .55; } .erp .dt-src__log li:nth-child(n+4) { opacity: .3; }
.erp .dt-src__log time { color: #8f88a6; font: 500 12px/1 var(--sc-font-mono); font-variant-numeric: tabular-nums; }
.erp .dt-src__log span { color: #e9e4f7; font: 400 13.5px/1.3 var(--sc-font-text); }
@keyframes dt-in { from { opacity: 0; transform: translateY(-10px); } }
.erp .dt-health { display: grid; grid-template-columns: 1.4fr 1fr 1fr .6fr; margin: 12px 0 0; border-top: 1px solid rgb(255 255 255 / .08); }
.erp .dt-health > div { display: grid; align-content: start; gap: 8px; padding: 18px 26px 22px; }
.erp .dt-health > div + div { box-shadow: -1px 0 0 rgb(255 255 255 / .08); }
.erp .dt-health small { color: #8f88a6; font: 600 11.5px/1 var(--sc-font-text); letter-spacing: .08em; text-transform: uppercase; }
.erp .dt-health b { color: #f4f3ef; font: 500 24px/1 var(--sc-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.erp .dt-health > div:first-child em { margin-right: 6px; }
.erp .dt-health svg { width: 100%; height: 24px; }
.erp .dt-health path { fill: none; stroke: #9a6bff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.erp .dt-bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.erp .dt-bars i { flex: 1; height: calc(var(--h) * 1%); border-radius: 2px; background: rgb(154 107 255 / .55); }

@media (max-width: 1100px) {
  .erp .dt-split { grid-template-columns: 1fr; }
  .erp .dt-sync__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erp .dt-health { grid-template-columns: 1fr 1fr; }
  .erp .dt-health > div:nth-child(3) { box-shadow: none; }
}
@media (max-width: 640px) {
  /* the match card scales with its width; below 640px it becomes a column so the type stays readable */
  .erp .dt-mx { aspect-ratio: auto; container-type: normal; display: grid; gap: 14px; padding: 20px 16px; }
  .erp .dt-mx > * { position: static; }
  .erp .dt-mx__key, .erp .dt-mx__lines, .erp .dt-dot { display: none; }
  .erp .dt-rec { width: auto; gap: 6px; }
  .erp .dt-rec small { font-size: 11px; }
  .erp .dt-rec > div { height: 36px; border-radius: 8px; }
  .erp .dt-rec span { padding: 0 8px; font-size: 12px; }
  .erp .dt-rec__why { font-size: 10.5px; gap: 14px; padding-left: 8px; }
  .erp .dt-tag { justify-self: start; padding: 6px 9px; border-radius: 6px; font-size: 12px; transform: none; }
  .erp .r1 { order: 1; } .erp .r2 { order: 2; } .erp .t1 { order: 3; } .erp .r3 { order: 4; } .erp .t2 { order: 5; } .erp .dt-ask { order: 6; } .erp .dt-one { order: 7; }
  .erp .dt-ask, .erp .dt-one { width: auto; padding: 12px 14px; border-radius: 10px; gap: 10px; transform: none; }
  .erp .dt-av { width: 30px; height: 30px; font-size: 11px; }
  .erp .dt-ask b { font-size: 14px; } .erp .dt-ask small, .erp .dt-one span { font-size: 12px; } .erp .dt-one b { font-size: 15px; }
  .erp .dt-sync__cols { grid-template-columns: 1fr; }
  .erp .dt-src__log { min-height: 0; } .erp .dt-src__log li:nth-child(n+3) { display: none; }
  .erp .dt-sync__bar { padding: 16px 18px; } .erp .dt-health > div { padding: 16px 18px; }
  .erp .dt-health > div:first-child { grid-column: 1 / -1; }
  .erp .dt-health > div:nth-child(2) { box-shadow: none; } .erp .dt-health > div:nth-child(3) { box-shadow: -1px 0 0 rgb(255 255 255 / .08); }
  .erp .dt-health > div:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .erp .dt-mx *, .erp .dt-src__log li { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------ map: Palantir Foundry Ontology "Plant object" panel
   (https://www.palantir.com/platforms/foundry/foundry-ontology/, ontology-map/palantir-ontology-b-3-*): labelled type boxes with
   right-angle callouts down to the objects, one object's property card with status dots, amber where something is wrong. */
.erp .dt-om { position: relative; margin: clamp(48px, 7vh, 88px) 0 0; width: 100%; aspect-ratio: 1200 / 520; container-type: inline-size; border-radius: 22px; overflow: hidden;
  background: radial-gradient(90% 80% at 50% 0%, rgb(154 107 255 / .14), transparent 70%), linear-gradient(180deg, rgb(30 24 54 / .95), rgb(12 10 24 / .97));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 1px 0 rgb(255 255 255 / .1), 0 30px 60px -30px rgb(0 0 0 / .95); }
.erp .dt-om > * { position: absolute; }
.erp .dt-om__lines { inset: 0; width: 100%; height: 100%; }
.erp .dt-om .cl, .erp .dt-om .lk { fill: none; stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.65, 0, .35, 1), stroke .6s; }
.erp .dt-om .cl { stroke: rgb(201 182 255 / .45); } .erp .dt-om .lk { stroke: #9a6bff; stroke-width: 2; }
.erp .dt-om__types, .erp .dt-om__objs, .erp .dt-om__rels { inset: 0; pointer-events: none; }
.erp .dt-ty, .erp .dt-ob, .erp .dt-rel { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.erp .dt-ty { top: 7.5%; padding: .85cqw 1.6cqw; border-radius: .5cqw; box-shadow: inset 0 0 0 1px rgb(201 182 255 / .5); color: #d9d2ff; font: 500 1.05cqw/1 var(--sc-font-mono); letter-spacing: .1em; text-transform: uppercase; }
.erp .dt-ob { top: 41.9%; display: flex; align-items: center; justify-content: center; gap: .8cqw; width: 15.8%; height: 8.8%; border-radius: 1cqw; background: rgb(250 248 255 / .96); color: #1a1033;
  font: 600 1.3cqw/1 var(--sc-font-text); box-shadow: 0 1cqw 2.4cqw -1cqw rgb(0 0 0 / .8); opacity: 0; transform: translate(-50%, .8cqw); transition: opacity .5s, transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s; }
.erp .dt-ob i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #4ade80; transition: background .5s; }
.erp .dt-rel { top: 54%; color: #a59fbd; font: 500 1.1cqw/1 var(--sc-font-text); opacity: 0; transition: opacity .5s; }
.erp .dt-om__cap { left: 3.3%; top: 70%; width: 52%; margin: 0; color: #bdb6d0; font: 400 1.5cqw/1.5 var(--sc-font-text); }
.erp .dt-card { left: 70.8%; top: 61.2%; width: 26.7%; padding: 1.3cqw 1.5cqw; border-radius: 1cqw; background: rgb(250 248 255 / .97); color: #1a1033; box-shadow: 0 1.4cqw 3cqw -1.2cqw rgb(0 0 0 / .85);
  opacity: 0; transform: translateY(1cqw); transition: opacity .5s, transform .6s cubic-bezier(.16, 1, .3, 1); }
.erp .dt-card small { display: block; margin-bottom: .8cqw; font: 600 .95cqw/1 var(--sc-font-mono); letter-spacing: .1em; text-transform: uppercase; color: #574e6e; }
.erp .dt-card dl { margin: 0; display: grid; gap: .45cqw; }
.erp .dt-card dl div { display: grid; grid-template-columns: 38% 1fr; align-items: center; padding: .3cqw 0; box-shadow: 0 1px 0 #ece8f6; }
.erp .dt-card dt { font: 500 1.05cqw/1.2 var(--sc-font-mono); color: #574e6e; }
.erp .dt-card dd { margin: 0; display: flex; align-items: center; gap: .6cqw; font: 500 1.1cqw/1.2 var(--sc-font-mono); }
.erp .dt-card dd i { width: .65cqw; height: .65cqw; border-radius: 50%; background: #16a34a; transition: background .5s; }
.erp .dt-card__acts { display: flex; gap: .6cqw; margin: 1cqw 0 0; }
.erp .dt-card__acts span { padding: .55cqw .9cqw; border-radius: .5cqw; box-shadow: inset 0 0 0 1px #d8d1ea; font: 600 1cqw/1 var(--sc-font-text); color: #1a1033; }
.erp .dt-om:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .cl:not(.cl-card) { stroke-dashoffset: 0; }
.erp .dt-om:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .dt-ob { opacity: 1; transform: translateX(-50%); }
.erp .dt-om:is([data-step="2"], [data-step="3"], [data-step="4"]) .lk { stroke-dashoffset: 0; }
.erp .dt-om:is([data-step="2"], [data-step="3"], [data-step="4"]) .dt-rel { opacity: 1; }
.erp .dt-om:is([data-step="3"], [data-step="4"]) .cl-card { stroke-dashoffset: 0; }
.erp .dt-om:is([data-step="3"], [data-step="4"]) .dt-card { opacity: 1; transform: none; }
.erp .dt-om[data-step="4"] .dt-ob--inv { box-shadow: 0 0 0 .35cqw rgb(232 129 34 / .55), 0 0 3cqw rgb(232 129 34 / .45); animation: dt-amber 2.4s ease-in-out infinite; }
.erp .dt-om[data-step="4"] .dt-ob--inv i, .erp .dt-om[data-step="4"] .dt-card .st i { background: #e88122; }
.erp .dt-om[data-step="4"] .dt-card .st { color: #a55510; font-weight: 600; }
.erp .dt-om[data-step="4"] .lk { stroke: rgb(232 129 34 / .8); }
@keyframes dt-amber { 50% { box-shadow: 0 0 0 .35cqw rgb(232 129 34 / .25), 0 0 1.4cqw rgb(232 129 34 / .2); } }

/* ------------------------------------------------ live: Plain's time ruler (https://www.plain.com, event-timeline/plain-y10500-*)
   with Rootly's stepping progress bars (https://rootly.com, event-timeline/rootly-y2000-*) as the playhead. */
.erp .dt-tl { margin: clamp(48px, 7vh, 88px) 0 0; }
.erp .dt-tl__rule { position: relative; padding-bottom: 18px; }
.erp .dt-tl__rule ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.erp .dt-tl__rule li { display: flex; align-items: center; gap: 20px; }
.erp .dt-tl__rule li::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / .14); margin-right: 20px; }
.erp .dt-tl__rule li:last-child::after { display: none; }
.erp .dt-tl__rule b { color: rgb(244 243 239 / .3); font: 500 clamp(36px, 4.4vw, 60px)/1 var(--sc-font-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; transition: color .5s; }
.erp .dt-tl__rule li.on b { color: #f4f3ef; }
.erp .dt-tl__head { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p, 0%); border-radius: 4px; background: linear-gradient(90deg, #7b58c5, #9a6bff); box-shadow: 0 0 14px rgb(154 107 255 / .7); transition: width .9s cubic-bezier(.65, 0, .35, 1); }
.erp .dt-tl__evs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; align-items: start; }
.erp .dt-ev { display: grid; gap: 4px; padding: 10px; border-radius: 18px; background: linear-gradient(180deg, rgb(36 29 62 / .9), rgb(14 11 26 / .95)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); opacity: .28; transition: opacity .6s; }
.erp .dt-ev.on { opacity: 1; }
.erp .dt-ev p { display: grid; gap: 6px; margin: 0; padding: 12px 14px 12px 34px; border-radius: 12px; position: relative; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .6s cubic-bezier(.16, 1, .3, 1), background .5s; }
.erp .dt-ev p.on { opacity: 1; transform: none; }
.erp .dt-ev p::before { content: ""; position: absolute; left: 14px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: #6f6889; }
.erp .dt-ev small { color: #a59fbd; font: 600 12.5px/1.2 var(--sc-font-text); letter-spacing: .02em; }
.erp .dt-ev span { color: #f4f3ef; font: 500 16px/1.4 var(--sc-font-text); }
.erp .dt-ev p[data-s="bad"]::before { background: #ff5a4e; box-shadow: 0 0 10px rgb(255 90 78 / .8); }
.erp .dt-ev p[data-s="sq"]::before { background: #9a6bff; box-shadow: 0 0 10px rgb(154 107 255 / .8); }
.erp .dt-ev p[data-s="turn"] { background: rgb(232 129 34 / .12); box-shadow: inset 0 0 0 1px rgb(232 129 34 / .45); }
.erp .dt-ev p[data-s="turn"]::before { background: #e88122; }
.erp .dt-ev p[data-s="turn"] small { color: #e88122; }
.erp .dt-ev p[data-s="ok"]::before { background: #4ade80; box-shadow: 0 0 10px rgb(74 222 128 / .8); }

/* ------------------------------------------------ engineers: WorkOS Directory Sync path (https://workos.com, delivery/workos-path-*)
   with Decagon's dot fill (https://decagon.ai, delivery/decagon-bso-*): a curved track, nodes riding it, filled as you scroll. */
.erp .dt-split--path { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
.erp .dt-sticky { position: sticky; top: 22vh; }
.erp .dt-pt { position: relative; }
.erp .dt-pt__svg, .erp .dt-pt__eng { display: none; }
.erp .dt-pt__steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.erp .dt-pt__steps li { display: grid; gap: 4px; }
.erp .dt-pt__steps b { color: #f4f3ef; font: 600 18px/1.2 var(--sc-font-display); letter-spacing: -.01em; }
.erp .dt-pt__steps span { color: #bdb6d0; font: 400 15px/1.45 var(--sc-font-text); }
.erp .dt-pt.js { aspect-ratio: 600 / 960; }
.erp .dt-pt.js .dt-pt__svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.erp .dt-pt .tr, .erp .dt-pt .fill { fill: none; stroke-width: 3; stroke-linecap: round; }
.erp .dt-pt .tr { stroke: rgb(255 255 255 / .1); }
.erp .dt-pt .fill { stroke: #9a6bff; filter: drop-shadow(0 0 6px rgb(154 107 255 / .7)); }
.erp .dt-pt.js .dt-pt__eng { display: block; position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #f4f3ef; box-shadow: 0 0 0 5px rgb(154 107 255 / .45), 0 0 22px rgb(154 107 255 / .9); }
.erp .dt-pt.js .dt-pt__steps { position: absolute; inset: 0; display: block; }
.erp .dt-pt.js .dt-pt__steps li { position: absolute; left: var(--x); top: var(--y); width: 46%; transform: translateY(-50%); padding-left: 34px; }
.erp .dt-pt.js .dt-pt__steps li.l { padding: 0 34px 0 0; text-align: right; transform: translate(-100%, -50%); }
.erp .dt-pt.js .dt-pt__steps li::before { content: ""; position: absolute; top: 50%; left: -11px; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #0c0a18; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .25); transition: background .4s, box-shadow .4s; }
.erp .dt-pt.js .dt-pt__steps li.l::before { left: auto; right: -11px; }
.erp .dt-pt.js .dt-pt__steps li.on::before { background: #9a6bff; box-shadow: 0 0 0 4px rgb(154 107 255 / .25), 0 0 14px rgb(154 107 255 / .8); }
.erp .dt-pt.js .dt-pt__steps li b, .erp .dt-pt.js .dt-pt__steps li span { transition: color .4s; }
.erp .dt-pt.js .dt-pt__steps li:not(.on) b { color: rgb(244 243 239 / .45); }
.erp .dt-pt.js .dt-pt__steps li:not(.on) span { color: rgb(189 182 208 / .4); }

/* ------------------------------------------------ move: Airbyte "One layer between your sources" (https://airbyte.com,
   delivery/airbyte-layer-*): a sources panel, dotted lines into a hub, a panel of outputs. The flip from connected to running
   in TagFlow has no shipped reference (delivery/notes.md) and is built here. */
.erp .dt-mv { position: relative; margin: clamp(48px, 7vh, 88px) 0 0; width: 100%; aspect-ratio: 1000 / 420; container-type: inline-size; }
.erp .dt-mv > * { position: absolute; }
.erp .dt-mv__lines { inset: 0; width: 100%; height: 100%; overflow: visible; }
.erp .dt-mv .mv-ln { fill: none; stroke: rgb(201 182 255 / .55); stroke-width: 1.5; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; animation: dt-flow 1.2s linear infinite; transition: opacity .6s; }
.erp .dt-mv .mv-ln.gone { opacity: 0; }
.erp .dt-mv .mv-out { fill: none; stroke: #9a6bff; stroke-width: 2; vector-effect: non-scaling-stroke; }
@keyframes dt-flow { to { stroke-dashoffset: -16; } }
.erp .dt-mv__in, .erp .dt-mv__out { border-radius: 2.2cqw; background: linear-gradient(180deg, rgb(36 29 62 / .9), rgb(14 11 26 / .95)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.erp .dt-mv__in { left: 2%; top: 0; width: 32%; height: 100%; }
.erp .dt-mv__out { left: 68%; top: 10%; width: 30%; height: 80%; }
.erp .dt-mv small { color: #a59fbd; font: 600 1.15cqw/1.2 var(--sc-font-text); letter-spacing: .06em; text-transform: uppercase; }
.erp .dt-mv__in > small, .erp .dt-mv__out > small { position: absolute; left: 7%; top: 2.6cqw; }
.erp .dt-mv__in ul, .erp .dt-mv__out ul { margin: 0; padding: 0; list-style: none; }
.erp .dt-tile { position: absolute; left: 6%; width: 90%; height: 14%; display: grid; align-content: center; gap: .6cqw; padding: 0 1.6cqw; border-radius: 1.2cqw; box-shadow: inset 0 0 0 1.5px rgb(201 182 255 / .4);
  transition: opacity .7s, transform .9s cubic-bezier(.65, 0, .35, 1), box-shadow .4s, background .4s; }
.erp .dt-tile:nth-child(1) { top: 13%; } .erp .dt-tile:nth-child(2) { top: 34%; } .erp .dt-tile:nth-child(3) { top: 55%; } .erp .dt-tile:nth-child(4) { top: 76%; }
.erp .dt-tile b, .erp .dt-mv__out b { color: #f4f3ef; font: 600 1.6cqw/1.1 var(--sc-font-display); letter-spacing: -.01em; }
.erp .dt-tile b .dt-vd { color: #8f88a6; font-family: var(--sc-font-text); font-weight: 400; font-size: .8em; letter-spacing: 0; }
.erp .dt-tile small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.erp .dt-tile.go { box-shadow: inset 0 0 0 2px #9a6bff; background: rgb(154 107 255 / .14); transform: translateX(120%); opacity: 0; }
.erp .dt-tile.moved { transform: none; opacity: .45; background: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); transition: opacity .6s, box-shadow .4s; }
.erp .dt-tile.moved b { color: rgb(244 243 239 / .7); }
.erp .dt-mv__hub { left: 47%; top: 40.5%; width: 14%; height: 19%; display: grid; place-items: center; border-radius: 1.6cqw; background: linear-gradient(160deg, #7b58c5, #3b2470); box-shadow: 0 0 0 1px rgb(255 255 255 / .2), 0 0 4cqw rgb(154 107 255 / .55); }
.erp .dt-mv__hub span { color: #fff; font: 600 2cqw/1 var(--sc-font-display); letter-spacing: -.02em; }
.erp .dt-mv__out ul { position: absolute; left: 7%; right: 7%; top: 8cqw; display: grid; gap: 1.2cqw; }
.erp .dt-mv__out li { display: grid; gap: .6cqw; padding: 1.4cqw 1.6cqw; border-radius: 1.2cqw; background: rgb(74 222 128 / .08); box-shadow: inset 0 0 0 1px rgb(74 222 128 / .45); opacity: 0; transform: translateX(-2cqw); transition: opacity .5s, transform .7s cubic-bezier(.16, 1, .3, 1); }
.erp .dt-mv__out li.on { opacity: 1; transform: none; }
.erp .dt-mv__out li small { color: #4ade80; text-transform: none; letter-spacing: 0; font-weight: 500; }
.erp .dt-mv__cap { position: static; margin: 0; }
.erp .dt-mv + .dt-mv__cap, .erp .dt-mvcap { margin: 22px 0 0; color: #bdb6d0; font: 400 16px/1.5 var(--sc-font-text); }

@media (max-width: 1100px) {
  .erp .dt-split--path { grid-template-columns: 1fr; }
  .erp .dt-sticky { position: static; }
  .erp .dt-tl__evs { grid-template-columns: 1fr; }
  .erp .dt-ev { opacity: 1; }
  /* the path as a plain track on narrow screens: one line, a dot per step */
  .erp .dt-pt__steps { position: relative; gap: 26px; padding-left: 34px; }
  .erp .dt-pt__steps::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(#9a6bff, rgb(154 107 255 / .15)); }
  .erp .dt-pt__steps li { position: relative; }
  .erp .dt-pt__steps li::before { content: ""; position: absolute; left: -32px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #0c0a18; box-shadow: inset 0 0 0 2px #9a6bff, 0 0 10px rgb(154 107 255 / .6); }
}
@media (max-width: 760px) {
  .erp .dt-om { aspect-ratio: auto; container-type: normal; display: grid; gap: 10px; padding: 20px 16px; }
  .erp .dt-om > * { position: static; }
  .erp .dt-om__lines, .erp .dt-om__types, .erp .dt-om__rels { display: none; }
  .erp .dt-om__objs { display: grid; gap: 8px; }
  .erp .dt-ob { position: static; width: auto; height: 40px; transform: none; font-size: 14px; gap: 8px; border-radius: 8px; }
  .erp .dt-ob i { width: 8px; height: 8px; }
  .erp .dt-om:is([data-step="1"], [data-step="2"], [data-step="3"], [data-step="4"]) .dt-ob { transform: none; }
  .erp .dt-om__cap { width: auto; font-size: 14px; }
  .erp .dt-card { width: auto; padding: 14px; border-radius: 10px; transform: none; }
  .erp .dt-card small { font-size: 11px; margin-bottom: 8px; } .erp .dt-card dl { gap: 4px; }
  .erp .dt-card dt, .erp .dt-card dd { font-size: 12.5px; } .erp .dt-card dd { gap: 6px; } .erp .dt-card dd i { width: 7px; height: 7px; }
  .erp .dt-card__acts { gap: 6px; margin-top: 10px; } .erp .dt-card__acts span { padding: 6px 10px; border-radius: 6px; font-size: 12px; }
  .erp .dt-tl__rule b { font-size: 26px; } .erp .dt-tl__rule li { gap: 10px; } .erp .dt-tl__rule li::after { margin-right: 10px; }
  .erp .dt-mv { aspect-ratio: auto; container-type: normal; display: grid; gap: 12px; }
  .erp .dt-mv > * { position: static; }
  .erp .dt-mv__lines { display: none; }
  .erp .dt-mv__in, .erp .dt-mv__out { width: auto; height: auto; padding: 16px; border-radius: 14px; }
  .erp .dt-mv__in > small, .erp .dt-mv__out > small { position: static; display: block; margin-bottom: 10px; font-size: 11px; }
  .erp .dt-mv__in ul, .erp .dt-mv__out ul { position: static; display: grid; gap: 8px; }
  .erp .dt-tile { position: static; width: auto; height: auto; padding: 12px 14px; border-radius: 10px; gap: 4px; }
  .erp .dt-tile.go { transform: none; opacity: .35; }
  .erp .dt-tile b, .erp .dt-mv__out b { font-size: 15px; } .erp .dt-mv small { font-size: 12px; }
  .erp .dt-mv__hub { justify-self: center; width: auto; height: auto; padding: 12px 22px; border-radius: 12px; }
  .erp .dt-mv__hub span { font-size: 16px; }
  .erp .dt-mv__out li { padding: 12px 14px; border-radius: 10px; gap: 4px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .erp .dt-om *, .erp .dt-tl *, .erp .dt-mv *, .erp .dt-pt * { transition: none !important; animation: none !important; }
}

/* sector links under the keep-or-move graphic: each sector page's fourth use case tab shows the system that sector keeps */
/* sector links as pill buttons (Saife 2026-10-27: "put these into buttons i can click") */
.erp .dt-sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; color: #8f88a6; font: 400 15px/1.5 var(--sc-font-text); }
.erp .dt-sectors span { flex-basis: 100%; color: #bdb6d0; margin-bottom: 4px; }
.erp .dt-sectors a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 15px; border-radius: 999px; color: #f4f3ef; font: 500 15px/1 var(--sc-font-text); text-decoration: none; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); backdrop-filter: blur(6px); transition: background .2s, box-shadow .2s, transform .2s; }
.erp .dt-sectors a:hover { background: rgb(154 107 255 / .2); box-shadow: inset 0 0 0 1px rgb(182 160 255 / .6), 0 0 18px rgb(154 107 255 / .3); transform: translateY(-1px); }
.erp .dt-sectors a:focus-visible { outline: 2px solid #b6a0ff; outline-offset: 3px; }

/* product name with its logo on a small white tile (vendor_logos.py, 2026-10-27); sized in em so it follows each label */
.erp .vlg { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.erp .vlg__m { flex: none; display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: .38em; background: #fff; }
.erp .vlg__m img { display: block; width: 74%; height: 74%; object-fit: contain; }
.erp .dt-src__eg .vlg + .vlg { margin-left: .7em; }
