.px-map,.px-sequence {
  --px-grid: #bb9cff19;
  --px-wire: #8d73b3;
  --px-plate: #30253f;
  --px-plate-side: #1f182b;
  --px-edge: #9c81b5;
  --px-floor: #11101f;
  --px-glow: #49306555;
  --px-type: var(--text,#f1eafb);
  --px-muted: var(--muted,#b4a9c3);
  --px-live: var(--accent,#be9bff);
  min-width:0;
  margin:0;
  font-family:Manrope,Arial,sans-serif;
}
[data-theme=light] :is(.px-map,.px-sequence),.light :is(.px-map,.px-sequence) {
  --px-grid:#71529322;
  --px-wire:#937aa9;
  --px-plate:#e7dfec;
  --px-plate-side:#cdbfd8;
  --px-edge:#9b84ad;
  --px-floor:#f6f3fa;
  --px-glow:#d4c1e94f;
}
.px-map {
  position:relative;
  display:grid;
  place-items:center;
  isolation:isolate;
  container-type:inline-size;
  width:100%;
  height:100%;
  background:radial-gradient(ellipse at 53% 56%,var(--px-glow),transparent 73%),var(--px-floor);
}
.px-map::before {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:-1;
  background-image:repeating-linear-gradient(26.565deg,transparent 0 13px,var(--px-grid) 13.4px 14px,transparent 14.5px 15px),repeating-linear-gradient(-26.565deg,transparent 0 13px,var(--px-grid) 13.4px 14px,transparent 14.5px 15px);
  mask-image:radial-gradient(ellipse at 52% 55%,#000 29%,transparent 86%);
}
.px-map-window{width:100%;min-width:0}
.px-map-svg{display:block;width:100%;height:auto;max-height:min(60svh,560px);overflow:visible}
.px-map svg,.px-sequence svg{font-family:inherit}
.px-plinth{fill:var(--px-plate);stroke:var(--px-edge);stroke-width:1.05;stroke-linejoin:round}
.px-plinth-side{fill:var(--px-plate-side);stroke:var(--px-edge);stroke-width:.75;stroke-linejoin:round}
.px-plinth-light{fill:none;stroke:var(--px-edge);stroke-width:1.65;stroke-linecap:round}
.px-device.is-source .px-plinth,.px-device.is-target .px-plinth{stroke:var(--px-live);stroke-width:1.65}
.px-device.is-source .px-plinth-light,.px-device.is-target .px-plinth-light{stroke:var(--px-live);stroke-width:2.6}
.px-node-name,.px-node-address{paint-order:stroke;stroke:var(--px-floor);stroke-width:3px;stroke-linejoin:round}
.px-node-name{font-size:14px;font-weight:700;letter-spacing:-.025em;fill:var(--px-type)}
.px-node-address{font:10px ui-monospace,SFMono-Regular,Consolas,monospace;fill:var(--px-muted);letter-spacing:0}
.px-wire,.px-active-route,.px-active-halo,.px-arrow{fill:none;stroke-linecap:round;stroke-linejoin:round}
.px-wire{stroke:var(--px-wire);stroke-width:1.5;stroke-dasharray:5 5;opacity:.85}
.px-map [data-traffic=name],.px-sequence [data-traffic=name]{--packet:var(--good,#8ad6c3)}
.px-map [data-traffic=transport],.px-sequence [data-traffic=transport]{--packet:var(--blue,#a9bdff)}
.px-map [data-traffic=secure],.px-sequence [data-traffic=secure]{--packet:var(--warm,#efb87d)}
.px-map [data-traffic=app],.px-sequence [data-traffic=app]{--packet:var(--accent,#cea6ff)}
.px-active-halo{stroke:var(--px-signal,var(--packet));stroke-width:7;opacity:.12}
.px-active-route,.px-arrow{stroke:var(--px-signal,var(--packet));stroke-width:1.9}
.px-arrow{stroke-width:2.3}
.px-transfer{pointer-events:none}
.px-map [data-tone=request]{--px-signal:var(--warm,#edbd80)}
.px-map [data-tone=response]{--px-signal:var(--accent,#be9bff)}
.px-map [data-tone=control]{--px-signal:var(--blue,#a9bdff)}
.px-map [data-tone=data]{--px-signal:var(--good,#8ad6c3)}
.px-envelope-shadow,.px-tag-shadow{fill:#0a0515;opacity:.5}
.px-envelope{fill:var(--px-signal);stroke:var(--px-floor);stroke-width:1.8}
.px-envelope-fold{fill:none;stroke:var(--px-floor);stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.px-tag-lead{fill:none;stroke:var(--px-signal);stroke-width:1.8;stroke-linecap:round}
.px-tag-box{fill:var(--panel,var(--px-floor));stroke:var(--px-signal);stroke-width:1.4}
.px-tag-title{fill:var(--px-signal);font-size:13px;font-weight:800;letter-spacing:-.015em}
.px-tag-detail{fill:var(--px-type);font:10.5px ui-monospace,SFMono-Regular,Consolas,monospace}
.px-packet-static,.px-flight-narrow{display:none}
.px-sequence{height:100%;max-height:60svh;min-height:150px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--px-wire) transparent;overscroll-behavior:contain;background:var(--px-floor)}
.px-sequence:focus-visible,.px-seq-row:focus-visible{outline:2px solid var(--px-live);outline-offset:-2px}
.px-seq-inner{min-width:var(--px-seq-min);width:100%}
.px-seq-head,.px-seq-row svg{display:block;width:100%;height:auto}
.px-seq-head{position:sticky;top:0;z-index:1;background:var(--px-floor);border-bottom:1px solid var(--line,#ffffff1f)}
.px-seq-rows{width:100%}
.px-seq-row{display:block;width:100%;margin:0;padding:0;border:0;cursor:pointer;background:transparent;color:var(--px-type);border-radius:0;text-align:inherit}
.px-seq-row:hover,.px-seq-row:focus-visible{background:color-mix(in srgb,var(--px-live) 8%,var(--px-floor))}
.px-seq-row.is-current{background:color-mix(in srgb,var(--px-live) 13%,var(--px-floor));box-shadow:inset 2px 0 var(--px-live)}
.px-seq-actor,.px-seq-address,.px-seq-msg{text-anchor:middle}
.px-seq-actor{fill:var(--px-type);font-size:12px;font-weight:700}
.px-seq-address,.px-seq-label,.px-seq-num{fill:var(--px-muted);font:10px ui-monospace,SFMono-Regular,Consolas,monospace}
.px-lifelines{fill:none;stroke:var(--px-wire);stroke-width:1;stroke-dasharray:3 4;opacity:.55}
.px-seq-wire,.px-seq-tip{stroke:var(--packet);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.px-seq-pin{fill:var(--packet)}
.px-seq-msg{fill:var(--px-type);font-size:11px;font-weight:550;paint-order:stroke;stroke:var(--px-floor);stroke-width:3;stroke-linejoin:round}
@container (max-width:540px){.px-flight-wide{display:none}.px-flight-narrow{display:inline}}
@container (max-width:520px){.px-node-name{font-size:17px}.px-node-address{font-size:12px}}
@media (prefers-reduced-motion:reduce){.px-packet-flight{display:none}.px-packet-static{display:inline}}
