.pg textarea{width:100%;box-sizing:border-box;font-size:13px;padding:10px;border:1px solid #d4d4d8;border-radius:8px}
.pg-examples{list-style:none;padding:0;display:grid;gap:8px}
.pg-examples li{border:1px solid #e4e4e7;border-radius:8px;padding:8px 10px}
.pg-examples li.current{border-color:#18181b}
.pg-examples form{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0}
.pg-examples button{margin-left:auto}
.btn-sm{padding:2px 10px;font-size:13px}
.pg-actions{display:flex;gap:8px;flex-wrap:wrap}
.pg-notice,.pg-error{border-left:4px solid #dc2626;background:#fef2f2;padding:8px 12px;border-radius:4px}
.ok-text{color:#15803d}.err-text{color:#b91c1c}
.pg-svg-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e4e4e7;border-radius:8px;background:#fafafa;margin:8px 0}
.pg-svg{display:block;max-width:none;height:auto}
@media (max-width:640px){.pg-svg{width:100%;min-width:320px}}
.node-box{fill:#fff;stroke:#a1a1aa;stroke-width:1.5}
.node-stack{fill:#f4f4f5;stroke:#d4d4d8}
.node-inner{fill:none;stroke:#a1a1aa}
.node text{font:12px ui-monospace,Menlo,Consolas,monospace;fill:#18181b}
.node .node-block,.node .node-meta{fill:#52525b;font-size:11px}
.node-ok .node-box{stroke:#16a34a;fill:#f0fdf4}
.node-failed .node-box{stroke:#dc2626;fill:#fee2e2;stroke-width:2.5}
.node-skipped .node-box,.node-not_run .node-box{stroke:#d4d4d8;fill:#f4f4f5}
.node-skipped text,.node-not_run text{fill:#a1a1aa}
.node:hover .node-box,.node:focus .node-box{stroke-width:3}
.edge{fill:none;stroke:#71717a;stroke-width:1.4}
.edge-merge{stroke:#7c3aed}
.pg-step{border-top:1px solid #e4e4e7;padding:6px 0}
.pg-step:target{background:#fefce8}
.pg-pre{max-height:360px;overflow:auto;font-size:12px}
.st{font-size:12px;padding:1px 6px;border-radius:999px;background:#f4f4f5}
.st-ok{background:#dcfce7}.st-failed{background:#fee2e2}.st-skipped{background:#f4f4f5;color:#71717a}
.pg-receipt th{text-align:left;padding-right:12px;font-weight:500}
.pg-receipt td{word-break:break-all}
.pg-list ul{padding-left:18px}.li-failed>a{color:#b91c1c}.li-skipped>a{color:#a1a1aa}
.tag{font-size:11px;background:#eef2ff;padding:1px 6px;border-radius:999px}
.inline{display:inline}.linkbtn{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer}
.pg-status{display:inline-flex;align-items:center;gap:6px;margin-left:8px;font-size:13px;color:#52525b}
.pg-spinner{width:14px;height:14px;border:2px solid #d4d4d8;border-top-color:#4f46e5;border-radius:50%;display:inline-block;animation:pg-spin .8s linear infinite}
@keyframes pg-spin{to{transform:rotate(360deg)}}
.pg-running .pg-svg .node .node-box{animation:pg-pulse 1.1s ease-in-out infinite}
.pg-running .pg-svg,.pg-running .pg-step{opacity:.75}
@keyframes pg-pulse{50%{fill:#eef2ff;stroke:#818cf8}}
.pg-svg .node.pg-arrive{animation:pg-pop .45s ease-out both}
@keyframes pg-pop{0%{opacity:.25}60%{opacity:1}100%{opacity:1}}
.pg-flash{outline:2px solid #818cf8;outline-offset:2px;transition:outline-color 1s}
button:disabled{opacity:.6;cursor:progress}
@media (prefers-reduced-motion:reduce){.pg-spinner,.pg-running .pg-svg .node .node-box,.pg-svg .node.pg-arrive{animation:none}}
