/* process-tree.css */
.pt-wrap { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1.5rem 3rem; }
        .pt-hero { margin-bottom: 1.25rem; }
        .pt-hero h1 { font-size: 1.6rem; margin: 0 0 0.35rem; }
        .pt-hero p { color: var(--eh-text-secondary, #8aa); margin: 0; }
        .pt-toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
        .pt-toolbar select, .pt-toolbar button {
            background: var(--eh-surface-solid, #1a2430);
            border: 1px solid var(--eh-border, #2a3a4a);
            color: var(--eh-text-primary, #e8f0f8);
            padding: 0.45rem 0.75rem;
            border-radius: 8px;
        }
        #treeStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
        #treeStats .s { background: var(--eh-surface-solid, #1a2430); border: 1px solid var(--eh-border, #2a3a4a); border-radius: 10px; padding: 0.75rem 1rem; }
        #treeStats .n { font-size: 1.35rem; font-weight: 700; }
        #treeStats .l { font-size: 0.75rem; color: var(--eh-text-secondary, #8aa); margin-top: 0.2rem; }
        .pt-node { margin: 0.35rem 0; border-left: 2px solid rgba(0, 240, 255, 0.15); padding-left: 0.5rem; }
        .pt-node > summary {
            list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
            padding: 0.45rem 0.55rem; border-radius: 8px;
        }
        .pt-node > summary:hover { background: rgba(0, 240, 255, 0.06); }
        .pt-node > summary::-webkit-details-marker { display: none; }
        .pt-name { font-weight: 650; }
        .pt-id { font-size: 0.72rem; opacity: 0.75; }
        .pt-badge {
            font-size: 0.68rem; padding: 0.1rem 0.45rem; border-radius: 999px;
            background: rgba(100, 149, 237, 0.18); color: #9ec5ff;
        }
        .pt-badge.kind { background: rgba(0, 255, 200, 0.12); color: #7dffd4; }
        .pt-badge.risk { background: rgba(255, 180, 0, 0.14); color: #ffd27a; }
        .pt-page {
            font-size: 0.68rem; padding: 0.1rem 0.4rem; border-radius: 4px;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
        }
        .pt-metrics { padding: 0.35rem 0.55rem 0.55rem 1rem; }
        .pt-metric { font-size: 0.7rem; margin-right: 0.35rem; color: #7dffd4; }
        .pt-children { margin-left: 0.75rem; }
        @media (max-width: 720px) {
            #treeStats { grid-template-columns: 1fr 1fr; }
        }

body.process-tree-page {
    background: #08080e !important;
    color: #e0e0e0 !important;
}
