/* data module styles */
:where(.dp) .dp-bus { padding: 0; overflow: hidden; }
:where(.dp) .dp-lh { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); }
:where(.dp) .dp-lh h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
:where(.dp) .dp-lh .dot { width: 8px; height: 8px; }
:where(.dp) .dp-flt { display: inline-flex; align-items: center; gap: 6px; }
:where(.dp) .dp-flt:empty { display: none; }
:where(.dp) .dp-live { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
:where(.dp) .dp-feedw { border-right: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
:where(.dp) .dp-feed { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; height: 0; min-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
:where(.dp) .dp-ev { display: grid; grid-template-columns: 78px 172px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 22px; border-bottom: 1px solid var(--line); font-size: 13px; }
:where(.dp) .dp-ev.new { background: color-mix(in srgb, var(--tc) 5%, transparent); }
@keyframes dpin { from { background: var(--tc-bg); } to { background: transparent; } }
:where(.dp) .dp-ev time { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 11.5px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
:where(.dp) .dp-tp { font-size: 11.5px; color: var(--info); background: var(--info-bg); border-color: transparent; white-space: nowrap; justify-self: start; }
:where(.dp) .dp-t { min-width: 0; }
:where(.dp) .dp-t span { display: block; color: var(--ink); }
:where(.dp) .dp-t small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; }
:where(.dp) .dp-t small em { font-style: normal; color: var(--ink-4); }
:where(.dp) .dp-feed .empty { padding: 40px 22px; }
:where(.dp) .dp-ffoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; margin-top: 0; border-top: 0; }
:where(.dp) .dp-mini { padding: 6px 22px 18px; min-width: 0; }
:where(.dp) .dp-mh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 16px 0 8px; }
:where(.dp) .dp-mh h3 { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
:where(.dp) .dp-mh span { font-size: 12px; color: var(--ink-3); }
:where(.dp) .dp-mr { width: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) 48px; grid-template-rows: auto auto; column-gap: 10px; align-items: center; font-size: 12.5px; border: 0; background: none; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; font: inherit; text-align: left; color: var(--ink-2); min-height: 32px; }
:where(.dp) button.dp-mr { cursor: pointer; transition: background var(--t-fast); }
:where(.dp) button.dp-mr:hover { background: var(--panel-2); }
:where(.dp) .dp-mr.on { background: var(--tc-bg); color: var(--ink); }
:where(.dp) .dp-mn { font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }
:where(.dp) .dp-mb { display: block; height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
:where(.dp) .dp-mb em { display: block; height: 100%; border-radius: 99px; background: var(--tc); }
:where(.dp) .dp-mr.app .dp-mb em { background: #0E9594; }
:where(.dp) .dp-mr.type .dp-mb em { background: #6E3BCB; opacity: .8; }
:where(.dp) .dp-mr b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink); }
:where(.dp) .dp-mr small { grid-column: 2 / 4; font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; display: none; }
:where(.dp) .dp-mr.on small, :where(.dp) button.dp-mr:hover small, :where(.dp) button.dp-mr:focus-visible small { display: block; }

:where(.dp) .dp-perf { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
:where(.dp) .dp-lat { display: flex; flex-direction: column; gap: 18px; }
:where(.dp) .dp-lat-v b { display: block; font-size: 44px; font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ok); }
:where(.dp) .dp-lat-v span { font-size: 12.5px; color: var(--ink-3); }
:where(.dp) .dp-scale { position: relative; padding-bottom: 20px; }
:where(.dp) .dp-bands { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; }
:where(.dp) .dp-bands i { display: block; height: 100%; }
:where(.dp) .dp-bands .g { background: color-mix(in srgb, var(--ok-dot) 70%, white); }
:where(.dp) .dp-bands .a { background: color-mix(in srgb, var(--warn-dot) 60%, white); }
:where(.dp) .dp-bands .r { background: color-mix(in srgb, var(--bad-dot) 55%, white); }
:where(.dp) .dp-needle { position: absolute; top: -5px; width: 3px; height: 18px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); box-shadow: 0 0 0 2px var(--panel); }
:where(.dp) .dp-ticks { position: relative; height: 14px; margin-top: 6px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
:where(.dp) .dp-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
:where(.dp) .dp-ticks span:first-child { transform: none; left: 0; }
:where(.dp) .dp-ticks span:last-child { transform: translateX(-100%); }
:where(.dp) .dp-lat-kv { font-size: 12.5px; }
:where(.dp) .dp-stages { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
:where(.dp) .dp-stage { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
:where(.dp) .dp-stage .meter i { background: var(--tc); }
:where(.dp) .dp-stage b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }

:where(.dp) .dp-subs summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; color: var(--tc); font-weight: 500; }
:where(.dp) .dp-subs summary::-webkit-details-marker { display: none; }
:where(.dp) .dp-subs summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
:where(.dp) .dp-subs[open] summary::after { transform: rotate(-135deg); }
:where(.dp) .dp-subs span { display: block; max-width: 240px; margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-2); white-space: normal; margin-top: 4px; }

/* zones: a numbered pipeline */
:where(.dp) .dp-zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: z; }
:where(.dp) .dp-zone { position: relative; padding: 4px 22px 4px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:where(.dp) .dp-zone + .dp-zone { padding-left: 22px; border-left: 1px solid var(--line); }
:where(.dp) .dp-zh { display: flex; align-items: center; gap: 10px; }
:where(.dp) .dp-zi { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; background: var(--c); flex: none; }
:where(.dp) .dp-zh h3 { font-size: 13px; font-weight: 600; color: var(--ink); }
:where(.dp) .dp-zv { font-size: 30px; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 10px; }
:where(.dp) .dp-zu { font-size: 12px; color: var(--ink-3); }
:where(.dp) .dp-zone p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
:where(.dp) .dp-zone dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 10px 0 0; font-size: 12.5px; padding-top: 12px; border-top: 1px solid var(--line); }
:where(.dp) .dp-zone dt { color: var(--ink-3); }
:where(.dp) .dp-zone dd { margin: 0; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
:where(.dp) .dp-zc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
:where(.dp) .dp-q { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
:where(.dp) .dp-qh { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
:where(.dp) .dp-qh b { font-weight: 600; color: var(--ink); }
:where(.dp) .dp-qbar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--bad-dot) 55%, white); overflow: hidden; display: flex; }
:where(.dp) .dp-qbar i { display: block; height: 100%; background: var(--ok-dot); border-radius: 99px 0 0 99px; }

/* lineage: a rail with six stops */
:where(.dp) .dp-lin { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
:where(.dp) .dp-lin::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: linear-gradient(90deg, #A3AAB8, #2247E6 45%, #D08A10 75%, #E5484D); border-radius: 2px; opacity: .55; }
:where(.dp) .dp-ln { position: relative; padding: 26px 16px 0 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
:where(.dp) .dp-lnd { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 3px solid var(--c); }
:where(.dp) .dp-lk { font-size: 11.5px; font-weight: 500; color: var(--c); }
:where(.dp) .dp-ln h3 { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
:where(.dp) .dp-ln h3 a { color: var(--ink); text-decoration: none; }
:where(.dp) .dp-ln h3 a:hover { color: var(--tc); }
:where(.dp) .dp-ln code { align-self: flex-start; font-size: 11px; }
:where(.dp) .dp-ln p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
:where(.dp) .dp-le { font-size: 11.5px; color: var(--ink-3); margin-top: auto; padding-top: 8px; }
:where(.dp) .dp-open { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
:where(.dp) .dp-open .muted { margin-right: 4px; }

.dp .tbl code { white-space: nowrap; }
:where(.dp) .dp-warn { color: var(--warn); }
:where(.dp) .dp-ret { font-weight: 500; }
:where(.dp) .dp-shares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:where(.dp) .dp-share { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--panel); min-width: 0; }
:where(.dp) .dp-share header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
:where(.dp) .dp-share header .ic { color: var(--ink-3); }
:where(.dp) .dp-share h3 { font-size: 14.5px; font-weight: 600; flex: 1; }
:where(.dp) .dp-share .kvl { font-size: 12.5px; }
:where(.dp) .dp-share .kvl code { font-size: 11.5px; }

@media (max-width: 1280px) {
  :where(.dp) .dp-lin { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  :where(.dp) .dp-lin::before { display: none; }
}
@media (max-width: 1180px) {
  :where(.dp) .dp-live, :where(.dp) .dp-perf { grid-template-columns: minmax(0, 1fr); }
  :where(.dp) .dp-feedw { border-right: 0; border-bottom: 1px solid var(--line); }
  :where(.dp) .dp-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  :where(.dp) .dp-zone:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .dp .g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.dp) .dp-lh { padding: 14px 16px; }
  :where(.dp) .dp-ev { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 9px 16px; }
  :where(.dp) .dp-ev time { white-space: nowrap; }
  :where(.dp) .dp-ev .dp-tp { display: none; }
  :where(.dp) .dp-feed { height: 380px; min-height: 0; flex: none; }
  :where(.dp) .dp-ffoot, :where(.dp) .dp-mini { padding-left: 16px; padding-right: 16px; }
  :where(.dp) .dp-zones, :where(.dp) .dp-lin, :where(.dp) .dp-shares { grid-template-columns: minmax(0, 1fr); }
  :where(.dp) .dp-zone, :where(.dp) .dp-zone + .dp-zone { padding: 0; border-left: 0; }
  :where(.dp) .dp-zone + .dp-zone { padding-top: 22px; border-top: 1px solid var(--line); }
  .dp .tbl { min-width: 640px; }
  :where(.dp) .dp-stage { grid-template-columns: 112px minmax(0, 1fr) 36px; }
}

/* ===== V2 visuals ===== */
/* live pulse */
:where(.dp) .pl { margin: 0; padding: 10px 22px 4px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-2)); }
:where(.dp) .pl-scroll { overflow-x: auto; scrollbar-width: thin; }
:where(.dp) .pl-svg { display: block; width: 100%; height: auto; }
:where(.dp) .pl-w path { fill: none; stroke: var(--line-2); stroke-width: 1; }
:where(.dp) .pl-bus { fill: var(--tc); }
:where(.dp) .pl-bt { font: 500 12px Inter, system-ui, sans-serif; fill: #fff; letter-spacing: .01em; }
:where(.dp) .pl-n circle { fill: var(--panel); stroke: var(--ink-4); stroke-width: 1.5; }
:where(.dp) .pl-n text { font: 500 12px Inter, system-ui, sans-serif; fill: var(--ink-2); }

@keyframes plfl { 0% { fill: var(--tc); stroke: var(--tc); } 100% { fill: var(--panel); stroke: var(--ink-4); } }
:where(.dp) .pl-dot { filter: drop-shadow(0 0 3px rgba(34,71,230,.35)); }

/* streamgraph */
:where(.dp) .st { margin: 0; }
:where(.dp) .st svg { display: block; width: 100%; height: auto; }
:where(.dp) .st-l { opacity: .88; transition: opacity var(--dur-2, 250ms); animation: stin 200ms var(--ease-out, ease) both; animation-delay: min(calc(var(--i) * 5ms), 60ms); }
@keyframes stin { from { opacity: 0; } }
:where(.dp) .st svg:hover .st-l { opacity: .55; }
:where(.dp) .st svg .st-l:hover { opacity: 1; }
:where(.dp) .st-mid { stroke: var(--line); }
:where(.dp) .st-e { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 4; }
:where(.dp) .st-now { stroke: var(--tc); stroke-width: 1; stroke-dasharray: 2 3; }
:where(.dp) .st-nowt { font: 600 11px Inter, system-ui, sans-serif; fill: var(--tc); }
:where(.dp) .st text { font: 400 11px Inter, system-ui, sans-serif; fill: var(--ink-3); }
:where(.dp) .st-c { fill: transparent; }
:where(.dp) .st-c:hover, :where(.dp) .st-c:focus-visible { fill: rgba(11,15,25,.04); outline: none; }
:where(.dp) .st-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 11.5px; color: var(--ink-2); }
:where(.dp) .st-leg span { display: inline-flex; align-items: center; gap: 6px; }
:where(.dp) .st-leg i { width: 8px; height: 8px; border-radius: 2px; }
:where(.dp) .st-leg .st-exp i { width: 14px; height: 0; border-top: 1.5px dashed var(--ink-3); border-radius: 0; }

/* topics radial */
:where(.dp) .rd { margin: 0; display: flex; justify-content: center; }
:where(.dp) .rd svg { width: 100%; max-width: 640px; height: auto; overflow: visible; }
:where(.dp) .rd-tr { fill: var(--panel-2); }
:where(.dp) .rd-f { opacity: .85; transition: opacity var(--dur-2, 250ms); transform-origin: 220px 220px; animation: rdin 200ms var(--ease-out, ease) both; animation-delay: min(calc(var(--i) * 5ms), 60ms); }
@keyframes rdin { from { transform: scale(.55); opacity: 0; } }
:where(.dp) .rd-b text { font: 500 13px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; fill: var(--ink-2); }
:where(.dp) .rd-b:hover .rd-f, :where(.dp) .rd-b:focus-visible .rd-f { opacity: 1; }
:where(.dp) .rd-b:hover text, :where(.dp) .rd-b:focus-visible text { fill: var(--ink); }
:where(.dp) .rd-b:focus-visible { outline: none; }
:where(.dp) .rd-b:focus-visible .rd-tr { stroke: var(--ink); stroke-width: 1.2; }
:where(.dp) .rd-v { font: 500 34px Inter, system-ui, sans-serif; letter-spacing: -.04em; fill: var(--ink); }
:where(.dp) .rd-k { font: 400 12px Inter, system-ui, sans-serif; fill: var(--ink-3); }

/* Sankey */
:where(.dp) .sk-f { margin: 0; }
:where(.dp) .sk-scroll { overflow-x: auto; scrollbar-width: thin; }
:where(.dp) svg.sk { display: block; width: 100%; height: auto; }
:where(.dp) .sk-l { fill: none; stroke-opacity: .22; transition: stroke-opacity var(--dur-2, 250ms); }
:where(.dp) svg.sk.hl .sk-l { stroke-opacity: .06; }
:where(.dp) svg.sk.hl .sk-l.on { stroke-opacity: .55; }
:where(.dp) .sk-l:hover { stroke-opacity: .5; }
:where(.dp) .sk-n text { font: 500 12px Inter, system-ui, sans-serif; fill: var(--ink-2); paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
:where(.dp) .sk-n:hover text, :where(.dp) .sk-n:focus-visible text { fill: var(--ink); }
:where(.dp) .sk-n:focus-visible { outline: none; }
:where(.dp) .sk-n:focus-visible rect { stroke: var(--ink); stroke-width: 1.5; }
:where(.dp) .sk-f figcaption { margin-top: 8px; }

/* freshness bullets */
:where(.dp) .bl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 22px 28px; }
:where(.dp) .bl-i { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
:where(.dp) .bl-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
:where(.dp) .bl-h a { color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none; }
:where(.dp) .bl-h a:hover { color: var(--tc); }
:where(.dp) .bl-h .status { font-size: 11.5px; }
:where(.dp) .bl-t { position: relative; height: 8px; border-radius: 99px; background: var(--panel-3); }
:where(.dp) .bl-t i { display: block; height: 100%; border-radius: 99px; background: var(--ok-dot); transform-origin: left; animation: blgrow var(--dur-3, 400ms) var(--ease-out, ease) both; }
:where(.dp) .bl-i.warn .bl-t i { background: var(--warn-dot); }
:where(.dp) .bl-t b { position: absolute; right: -1px; top: -4px; width: 2px; height: 16px; background: var(--ink); border-radius: 1px; }
@keyframes blgrow { from { transform: scaleX(0); } }
:where(.dp) .bl-m { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
:where(.dp) .bl-m b { color: var(--ink); font-weight: 500; }
:where(.dp) .bl-s { font-size: 11.5px; color: var(--ink-3); }

/* retention timeline */
:where(.dp) .rt { position: relative; }
:where(.dp) .rt-ax { position: relative; height: 18px; margin-left: 260px; margin-right: 260px; font-size: 11px; color: var(--ink-3); }
:where(.dp) .rt-ax span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
:where(.dp) .rt-ax span:first-child { transform: none; }
:where(.dp) .rt-ax span:last-child { transform: translateX(-100%); }
:where(.dp) .rt-r { display: grid; grid-template-columns: 248px minmax(0, 1fr) 248px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
:where(.dp) .rt-n b { display: block; font-size: 13px; font-weight: 500; }
:where(.dp) .rt-n span, :where(.dp) .rt-note { font-size: 12px; color: var(--ink-3); }
:where(.dp) .rt-tr { position: relative; height: 22px; }
:where(.dp) .rt-g { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
:where(.dp) .rt-b { position: absolute; left: 0; top: 4px; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--tc-line), var(--tc)); transform-origin: left; animation: blgrow var(--dur-3, 400ms) var(--ease-out, ease) both; }
:where(.dp) .rt-b.pc { background: repeating-linear-gradient(135deg, var(--tc-line) 0 5px, var(--tc-bg) 5px 10px); }
:where(.dp) .rt-b em { position: absolute; right: 8px; top: -1px; font: 600 11px/16px Inter, system-ui, sans-serif; font-style: normal; color: #fff; white-space: nowrap; }
:where(.dp) .rt-b.pc em { color: var(--tc-ink); }
:where(.dp) .rt-no { position: absolute; left: 0; top: 2px; }

/* quality dot plot */
:where(.dp) .dq { position: relative; }
:where(.dp) .dq-ax { position: relative; height: 18px; margin-left: 236px; margin-right: 128px; font-size: 11px; color: var(--ink-3); }
:where(.dp) .dq-ax span { position: absolute; transform: translateX(-50%); }
:where(.dp) .dq-ax span:first-child { transform: none; }
:where(.dp) .dq-ax span:last-child { transform: translateX(-100%); }
:where(.dp) .dq-r { display: grid; grid-template-columns: 224px minmax(0, 1fr) 116px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
:where(.dp) .dq-n { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
:where(.dp) .dq-n code { font-size: 11px; white-space: nowrap; flex: none; }
:where(.dp) .dq-tr { position: relative; height: 16px; background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
:where(.dp) .dq-l { position: absolute; top: 7px; height: 2px; background: var(--ok-dot); opacity: .45; }
:where(.dp) .dq-r.warn .dq-l { background: var(--warn-dot); }
:where(.dp) .dq-th, :where(.dp) .dq-th.s { position: absolute; top: 1px; width: 2px; height: 14px; background: var(--ink); border-radius: 1px; transform: translateX(-1px); }
:where(.dp) .dq-d, :where(.dp) .dq-d.s { position: absolute; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok-dot); box-shadow: 0 0 0 3px rgba(18,166,114,.16); transform: translateX(-6px); transition: transform var(--dur-2, 250ms) var(--ease-spring, ease); }
:where(.dp) .dq-r.warn .dq-d { background: var(--warn-dot); box-shadow: 0 0 0 3px rgba(224,155,26,.2); }
:where(.dp) .dq-r:hover .dq-d { transform: translateX(-6px) scale(1.3); }
:where(.dp) .dq-v { text-align: right; font-variant-numeric: tabular-nums; }
:where(.dp) .dq-v b { display: block; font-size: 13px; font-weight: 500; }
:where(.dp) .dq-v span { font-size: 11.5px; color: var(--ink-3); }
:where(.dp) .dq-leg { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
:where(.dp) .dq-leg span { position: relative; padding-left: 18px; }
:where(.dp) .dq-leg .s { left: 4px; }

@media (max-width: 1180px) {
  :where(.dp) .rt-r { grid-template-columns: 180px minmax(0, 1fr); } :where(.dp) .rt-note { grid-column: 2; } :where(.dp) .rt-ax { margin-left: 192px; margin-right: 0; }
}
@media (max-width: 760px) {
  :where(.dp) .pl { padding: 8px 16px 2px; }
  :where(.dp) .rt-r, :where(.dp) .dq-r { grid-template-columns: minmax(0, 1fr); gap: 6px; } :where(.dp) .rt-note { grid-column: 1; } :where(.dp) .rt-ax, :where(.dp) .dq-ax { margin: 0; }
  :where(.dp) .dq-v { text-align: left; display: flex; gap: 10px; align-items: baseline; }
}
@media (prefers-reduced-motion: reduce) {
  :where(.dp) .st-l, :where(.dp) .rd-f, :where(.dp) .bl-t i, :where(.dp) .rt-b, :where(.dp) .pl-n.fl circle { animation: none !important; }
}
:where(.dp) .rd { flex-direction: column; align-items: center; }
:where(.dp) .rd-list { display: none; list-style: none; margin: 12px 0 0; padding: 0; width: 100%; }
:where(.dp) .rd-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
:where(.dp) .rd-list i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
:where(.dp) .rd-list code { font-size: 11.5px; }
:where(.dp) .rd-list b { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  :where(.dp) .rd-b text { display: none; }
  :where(.dp) .rd svg { max-width: 300px !important; }
  :where(.dp) .rd-list { display: block; }
}

/* event bus and lineage: below 860px of width the diagrams give way to full-size HTML twins (no sideways scrolling) */
:where(.dp) .pl, :where(.dp) .sk-f { container-type: inline-size; }
:where(.dp) .pl-alt, :where(.dp) .sk-alt { display: none; }
@container (max-width: 859px) {
  :where(.dp) .pl-scroll, :where(.dp) .sk-scroll { display: none; }
  :where(.dp) .pl-alt { display: grid; gap: 10px; padding: 6px 0 10px; }
  :where(.dp) .sk-alt { display: grid; }
}
:where(.dp) .pl-alt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
:where(.dp) .pl-alt li { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 8px; background: var(--panel); transition: border-color var(--dur-2, 250ms), background var(--dur-2, 250ms); }
:where(.dp) .pl-alt li i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-4); }
:where(.dp) .pl-alt li.fl { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 8%, var(--panel)); color: var(--ink); }
@keyframes plchip { 0% { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 10%, var(--panel)); } 100% { border-color: var(--line); background: var(--panel); } }
:where(.dp) .pl-abus { position: relative; height: 30px; border-radius: 15px; background: var(--tc); display: grid; place-items: center; overflow: hidden; }
:where(.dp) .pl-abus span { font: 500 12px Inter, system-ui, sans-serif; color: #fff; position: relative; }
:where(.dp) .pl-abus::after { content: ''; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); opacity: 0; }

@keyframes plbus { 0% { left: -30%; opacity: 1; } 100% { left: 100%; opacity: 1; } }
:where(.dp) .sk-alt { list-style: none; margin: 0; padding: 0; gap: 0; }
:where(.dp) .sk-alt li { padding: 12px 0; border-bottom: 1px solid var(--line); }
:where(.dp) .sk-ah { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
:where(.dp) .sk-ah a { color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none; }
:where(.dp) .sk-ah a:hover { color: var(--tc); }
:where(.dp) .sk-ah b { font-weight: 500; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
:where(.dp) .sk-ab { display: block; height: 4px; border-radius: 2px; background: var(--panel-3); margin: 6px 0 8px; overflow: hidden; }
:where(.dp) .sk-ab em { display: block; height: 100%; background: #2247E6; border-radius: 2px; opacity: .75; }
:where(.dp) .sk-alt dl { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 12px; }
:where(.dp) .sk-alt dt { color: var(--ink-3); padding-top: 3px; }
:where(.dp) .sk-alt dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
:where(.dp) .sk-alt .chip { font-size: 12px; }
:where(.dp) .sk-alt .chip span { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { :where(.dp) .pl-alt li.fl, :where(.dp) .pl-abus.fl::after { animation: none; } }

/* five figures never leave an empty cell: 3 + 2 on mid widths, 2 + 2 + 1 on narrow ones */
@media (max-width: 1180px) and (min-width: 861px) {
  .dp .g-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dp .g-kpi > .kpi { grid-column: span 2; }
  .dp .g-kpi > .kpi:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 860px) { .dp .g-kpi > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } }
:where(.dp) .rd-cap { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
:where(.dp) .rd-cap b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

:where(.dp) .st-l:focus { outline: none; }
:where(.dp) .st-l:focus-visible { opacity: 1; stroke: var(--ink); stroke-width: 1.5px; }
