
.ap-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:var(--line);border:2px solid var(--iron)}
@media (min-width:56rem){.ap-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ap-stats div{background:var(--paper);padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.35rem;min-width:0}
.ap-stats b{font-size:clamp(1.9rem,6vw,2.8rem);line-height:1;font-variation-settings:"wdth" 120,"wght" 800;font-weight:normal;font-variant-numeric:tabular-nums}
.ap-stats div:first-child b{color:var(--hazard)}
.ap-stats span{font-size:.875rem;color:var(--steel);line-height:1.4}

.g-money{--g:#E4551C}.g-msg{--g:#2F6FA8}.g-cloud{--g:#B07A0E}.g-ai{--g:#7A4FB8}.g-data{--g:#2E8B57}
:root[data-theme="dark"] .g-money{--g:#D9531C}:root[data-theme="dark"] .g-msg{--g:#4485C2}:root[data-theme="dark"] .g-cloud{--g:#B9821A}:root[data-theme="dark"] .g-ai{--g:#8A68CC}:root[data-theme="dark"] .g-data{--g:#34A066}

.ap-map-wrap{display:grid;gap:1rem;align-items:start;border:2px solid var(--iron);background:
  radial-gradient(60% 60% at 50% 50%,color-mix(in srgb,var(--hazard) 8%,transparent),transparent 70%),var(--paper)}
@media (min-width:62rem){.ap-map-wrap{grid-template-columns:minmax(0,1fr) 18rem}}
.ap-map-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;min-width:0}
.ap-map-scroll:focus-visible{outline:2px solid var(--hazard);outline-offset:-2px}
.ap-map{display:block;width:100%;min-width:720px;height:auto}
.ap-spoke{fill:none;stroke:var(--g);stroke-width:1.4;opacity:.28;transition:opacity .2s,stroke-width .2s}
.ap-spoke.is-on{opacity:1;stroke-width:2.6}
.ap-pulse{fill:var(--g)}
.ap-node{cursor:pointer;outline:none}
.ap-node .halo{fill:var(--g);opacity:0;transition:opacity .2s}
.ap-node .dot{fill:var(--paper);stroke:var(--g);stroke-width:3}
.ap-node .ini{fill:var(--g);font:700 13px "IBM Plex Mono",ui-monospace,monospace}
.ap-node text:not(.ini){fill:var(--iron);font:600 13px "Archivo",sans-serif}
.ap-node.st-built .dot{stroke-dasharray:4 3}
.ap-node:hover .halo,.ap-node:focus-visible .halo,.ap-node.is-on .halo{opacity:.25}
.ap-node.is-on .dot{fill:var(--g)}
.ap-node.is-on .ini{fill:var(--on-iron)}
.ap-node:focus-visible .dot{stroke:var(--iron)}
.ap-hub rect{fill:var(--iron);stroke:var(--hazard);stroke-width:2}
.ap-hub text{fill:var(--on-iron);font:750 15px "Archivo",sans-serif}
.ap-hub-site rect{fill:var(--paper);stroke:var(--line-strong)}
.ap-hub-site text{fill:var(--steel);font:500 12px "IBM Plex Mono",ui-monospace,monospace}
.ap-detail{padding:1.1rem 1.2rem;border-top:2px solid var(--iron);min-height:9rem}
@media (min-width:62rem){.ap-detail{border-top:0;border-left:2px solid var(--iron);height:100%}}
.ap-detail h3{margin:.2rem 0 .5rem;font-size:1.5rem;font-variation-settings:"wdth" 116,"wght" 800;font-weight:normal}
.ap-detail-g{margin:0;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.75rem;color:var(--g)}
.ap-detail-what{margin:0 0 .6rem}
.ap-detail-for{margin:0 0 .6rem;color:var(--steel);font-size:.875rem}
.ap-detail-empty{color:var(--steel);margin:0}
.ap-chip{display:inline-block;margin:0;padding:.15rem .6rem;border-radius:999px;font-size:.75rem;font-family:"IBM Plex Mono",ui-monospace,monospace;border:1px solid var(--line-strong);color:var(--steel)}
.ap-chip.st-live{border-color:#2FA35B;color:#2FA35B}
.ap-legend{list-style:none;margin:.7rem 0 0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;font-size:.8125rem;color:var(--steel)}
.ap-legend li{display:inline-flex;align-items:center;gap:.4rem}
.ap-legend i{width:.75rem;height:.75rem;border-radius:50%;background:var(--g)}

.ap-status{display:flex;align-items:center;gap:.6rem;margin:0 0 1rem;padding:.6rem .9rem;border:1px dashed var(--line-strong);font-size:.9375rem;background:var(--paper)}
.ap-status span{width:.65rem;height:.65rem;border-radius:50%;background:#C98A12;flex:none}
.ap-stripe{display:grid;gap:clamp(1rem,3vw,2rem);align-items:start}
@media (min-width:62rem){.ap-stripe{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
.ap-seq{margin:0;border:2px solid var(--iron);background:var(--paper);overflow-x:auto}
.ap-seq svg{display:block;width:100%;min-width:520px;height:auto}
.ap-seq figcaption{padding:.6rem .9rem;border-top:1px solid var(--line);font-size:.8125rem;color:var(--steel)}
.ap-life{stroke:var(--line-strong);stroke-width:1.5;stroke-dasharray:4 5}
.ap-actor rect{fill:var(--iron)}
.ap-actor text{fill:var(--on-iron);font:700 14px "Archivo",sans-serif}
.ap-arrow{fill:none;stroke:var(--iron);stroke-width:1.8}
.ap-head{fill:none;stroke:var(--iron);stroke-width:1.8;stroke-linejoin:round}
.ap-msg{fill:var(--iron);font:500 12px "Archivo",sans-serif}
.ap-n{fill:var(--steel-light);font:500 11px "IBM Plex Mono",ui-monospace,monospace}
.ap-step-card .ap-arrow,.ap-step-card .ap-head{stroke:#635BFF}
.ap-step-card .ap-msg{fill:#635BFF;font-weight:700}
.ap-step-hook .ap-arrow,.ap-step-hook .ap-head{stroke:var(--hazard);stroke-width:2.4}
.ap-stripe-side h3{margin:0 0 .5rem;font-size:1.05rem;font-variation-settings:"wdth" 108,"wght" 750;font-weight:normal}
.ap-stripe-side h3 + ul,.ap-stripe-side h3 + ol{margin-bottom:1.1rem}
.ap-ticks{list-style:none;margin:0;padding:0}
.ap-ticks li{position:relative;padding:.3rem 0 .3rem 1.6rem}
.ap-ticks li::before{content:"✓";position:absolute;left:0;color:#2FA35B;font-weight:700}
.ap-scen{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:.4rem}
.ap-scen li{counter-increment:sc;padding:.25rem .65rem .25rem .45rem;border:1px solid var(--line-strong);background:var(--chip-bg);font-size:.8125rem;border-radius:999px}
.ap-scen li::before{content:"✓";color:#2FA35B;font-weight:700;margin-right:.35rem}

.ap-chart{margin:0}
.ap-chart-plot{position:relative;border:2px solid var(--iron);background:var(--paper);padding:.8rem .6rem .2rem}
.ap-chart svg{display:block;width:100%;height:auto}
.ap-grid{stroke:var(--line);stroke-width:1}
.ap-tick{fill:var(--steel-light);font:500 11px "IBM Plex Mono",ui-monospace,monospace}
.ap-bar{fill:color-mix(in srgb,var(--hazard) 70%,var(--paper));transition:fill .15s}
.ap-bar.is-peak,.ap-bar.is-hover{fill:var(--hazard)}
.ap-peak{fill:var(--iron);font:700 12px "IBM Plex Mono",ui-monospace,monospace}
.ap-hit{fill:transparent;outline:none}
.ap-hit:focus-visible{stroke:var(--iron);stroke-width:2}
.ap-tip{position:absolute;z-index:2;pointer-events:none;background:var(--iron);color:var(--on-iron);padding:.35rem .6rem;font-size:.8125rem;white-space:nowrap;box-shadow:0 8px 18px rgba(0,0,0,.25)}
.ap-tip[hidden]{display:none}
.ap-tip b{font-variant-numeric:tabular-nums}
.ap-table{margin-top:.6rem;font-size:.875rem}
.ap-table summary{cursor:pointer;color:var(--steel)}
.ap-table table{border-collapse:collapse;margin-top:.5rem}
.ap-table th,.ap-table td{padding:.25rem .9rem .25rem 0;border-bottom:1px solid var(--line);text-align:left;font-variant-numeric:tabular-nums}
.ap-rules{margin:.8rem 0 0;padding:0;list-style:none;display:grid;gap:.6rem;max-width:var(--measure)}
.ap-rules b{font-variation-settings:"wdth" 104,"wght" 700;font-weight:normal}
