.event-graph-dialog{width:min(1440px,96vw);max-width:96vw;height:min(920px,94vh);max-height:94vh;padding:0;border:1px solid #dce4df;border-radius:15px;background:#f7f9f7;color:#263b32;box-shadow:0 30px 100px #0d271c30;overflow:hidden}
.event-graph-dialog[open]{display:flex;flex-direction:column}.event-graph-dialog::backdrop{background:#142b2370;backdrop-filter:blur(5px)}.event-graph-dialog button{font:inherit;cursor:pointer;color:inherit}.event-graph-dialog button:disabled{opacity:.4;cursor:default}.event-graph-dialog :focus-visible{outline:2px solid #719c89;outline-offset:4px}.eg-header{display:flex;justify-content:space-between;align-items:center;padding:22px 30px 17px;background:#fff;border-bottom:1px solid #e6ebe7;flex-shrink:0}.eg-eyebrow{font-size:9px;color:#8b9a90;letter-spacing:2px}.eg-header h2{font-family:SimSun,serif;font-size:24px;letter-spacing:2px;margin:6px 0 0}.eg-header-actions{display:flex;align-items:center;gap:20px}.eg-header-actions button{background:none;border:0;font-size:11px;color:#789080}.eg-header-actions #egClose{font-size:27px;color:#506959}.eg-subhead{padding:12px 30px;display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #e6ebe7;font-size:11px}.eg-subhead p{margin:0;max-width:65%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.eg-subhead>span{font-size:10px;color:#91a095}.eg-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;flex:1;min-height:0}.eg-stage{position:relative;display:flex;flex-direction:column;min-height:0;background-image:radial-gradient(#dce4dc .7px,transparent .7px);background-size:18px 18px}.eg-toolbar{display:flex;justify-content:space-between;padding:14px 20px;gap:12px;z-index:1;flex-shrink:0}.eg-toolbar>div{display:flex;gap:4px;background:#ffffffd9;border:1px solid #e4ebe4;border-radius:7px;padding:3px}.eg-toolbar button{font-size:10px;border:0;border-radius:4px;padding:6px 10px;background:none;color:#8b9990}.eg-toolbar button.active{background:#eaf0eb;color:#355b46}.eg-toolbar button:hover{background:#edf2ed}.eg-loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:300px;padding:30px}.eg-loading h3{font-weight:400;font-size:16px;margin:25px 0 10px}.eg-loading p{font-size:11px;color:#8a9a8f;margin:0;max-width:380px}.eg-progress{width:210px;height:3px;background:#e3eae2;margin-top:25px;overflow:hidden;border-radius:3px}.eg-progress>div{height:100%;background:#547f66;width:0;transition:width 1s}.eg-orbit{width:90px;height:90px;position:relative;border:1px solid #d8e4da;border-radius:50%;animation:eg-orbit 8s linear infinite}.eg-orbit span{position:absolute;width:24px;height:24px;background:#527e65;border-radius:50%;top:32px;left:32px;box-shadow:0 0 0 9px #527e6510}.eg-orbit i{position:absolute;width:11px;height:11px;border-radius:50%;background:#92af9a;top:0;left:25px}.eg-orbit i:nth-child(2){top:65px;left:72px;background:#9aafbe}.eg-orbit i:nth-child(3){top:68px;left:0;background:#b3a2b7}.has-error .eg-orbit{animation:none;opacity:.3}.has-error h3{color:#a46e54}#egCanvas{position:relative;flex:1;min-height:0}#egSvg{display:block;width:100%;height:100%;touch-action:none;cursor:grab;min-height:260px}#egSvg:active{cursor:grabbing}.eg-node{cursor:pointer}.eg-node-halo{transition:opacity .2s}.eg-node:hover .eg-node-halo,.eg-node.selected .eg-node-halo{opacity:.24}.eg-node.selected>circle:nth-child(2){stroke:#fff;stroke-width:3}.eg-node-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:13px;fill:#4c6254;paint-order:stroke;stroke:#f7f9f7;stroke-width:5px;stroke-linejoin:round}.eg-node-symbol{font-size:13px;fill:#fff}.eg-edge text{font-size:10px;fill:#97a69b;paint-order:stroke;stroke:#f7f9f7;stroke-width:5px}.eg-canvas-hint{position:absolute;bottom:10px;left:20px;font-size:9px;color:#9ba89f;pointer-events:none}.eg-legend{padding:16px 20px;display:flex;gap:15px;flex-wrap:wrap;font-size:9px;color:#879a8a;background:#f7f9f7d9;flex-shrink:0}.eg-legend span{display:flex;align-items:center;gap:5px}.eg-legend i{width:6px;height:6px;border-radius:50%;display:inline-block}.eg-detail{border-left:1px solid #e0e8e0;background:#fff;padding:25px;overflow:auto;min-width:0}.eg-detail-empty{margin-top:90px;text-align:center;font-size:13px;color:#809684;line-height:2.4}.eg-detail-empty span{font-size:10px;color:#a2afa5}.eg-node-kind{font-size:10px;letter-spacing:1px;margin-bottom:14px}.eg-detail h3{font-size:18px;font-weight:500;line-height:1.7;margin:0 0 13px}.eg-node-meta{font-size:10px;color:#99a79d;line-height:1.9}.eg-node-summary{font-size:12px;line-height:1.9;color:#718275;margin:20px 0}.eg-source{display:block;font-size:11px;color:#365e45;margin:16px 0;text-decoration:none}.eg-site-link{font-size:10px;color:#91a294}.eg-quote{margin:20px 0;font-size:11px;color:#8c9d90}.eg-detail summary{cursor:pointer;font-size:10px;color:#90a394}.eg-detail blockquote{font-size:11px;border-left:2px solid #d7e3d8;margin:14px 0;padding-left:12px;color:#87988a;line-height:1.9;overflow-wrap:anywhere}.eg-relations{margin-top:30px;border-top:1px solid #edf0eb;padding-top:20px}.eg-relations h4{font-size:11px;font-weight:500;color:#607a67;margin:0 0 16px}.eg-relations article{margin-bottom:22px}.eg-relation-status{font-size:9px;color:#839986}.eg-relations article p{font-size:11px;line-height:1.9;color:#819185;margin:10px 0}.eg-muted,.eg-warning{font-size:11px;line-height:1.9;color:#9b927f;margin-top:20px}.eg-footer{border-top:1px solid #e1e7df;display:flex;justify-content:space-between;gap:15px;padding:13px 25px;background:#fff;color:#98a79b;font-size:9px;flex-shrink:0}#egMeta{white-space:nowrap}#egTimeline{flex:1;overflow:auto;padding:15px 35px}.eg-timeline-item{position:relative;display:grid;grid-template-columns:80px 12px 1fr;gap:16px;background:none;border:0;text-align:left;padding:0 0 30px;width:100%}.eg-timeline-item time{font-size:10px;color:#91a296;padding-top:3px}.eg-timeline-item>i{width:8px;height:8px;border-radius:50%;margin-top:6px;position:relative}.eg-timeline-item:after{content:'';position:absolute;left:99px;top:20px;bottom:4px;border-left:1px solid #dfe8de}.eg-timeline-item:last-child:after{display:none}.eg-timeline-item span{font-size:9px;color:#9caa9f}.eg-timeline-item h3{font-size:14px;line-height:1.7;margin:6px 0;color:#516b58}.eg-timeline-item p{font-size:11px;color:#93a196;line-height:1.9;margin:0}.eg-coverage-warning{font-size:10px;line-height:1.8;color:#9d927d;padding:12px;background:#f1eee5;margin-bottom:20px;border-radius:6px}.event-graph-dialog [hidden]{display:none!important}@keyframes eg-orbit{to{transform:rotate(360deg)}}@media(max-width:900px){.eg-workspace{grid-template-columns:minmax(0,1fr) 265px}.eg-header,.eg-subhead{padding-left:20px;padding-right:20px}.eg-detail{padding:18px}.eg-toolbar{padding:12px}.eg-toolbar button{padding:5px 7px}}@media(max-width:650px){.event-graph-dialog{height:96vh;max-height:96vh;width:97vw;max-width:97vw;border-radius:10px}.eg-header{padding:15px 18px}.eg-header h2{font-size:21px}.eg-subhead{align-items:start;gap:7px;flex-direction:column}.eg-subhead p{max-width:100%;font-size:10px}.eg-subhead>span{font-size:9px}.eg-workspace{display:flex;flex-direction:column;overflow:auto}.eg-stage{min-height:400px;flex-shrink:0;height:53vh}.eg-detail{border-left:0;border-top:1px solid #e0e8e0;overflow:visible;padding:22px;flex-shrink:0}.eg-detail-empty{margin:10px}.eg-toolbar button{font-size:9px}.eg-legend{gap:10px;padding:12px}.eg-canvas-hint{font-size:8px;left:12px}.eg-footer{padding:10px 15px;flex-direction:column;gap:5px;font-size:8px}.eg-loading{min-height:200px}.eg-orbit{width:75px;height:75px}.eg-orbit span{top:25px;left:25px}#egTimeline{padding:15px 18px}.eg-timeline-item{grid-template-columns:68px 10px 1fr;gap:12px}.eg-timeline-item:after{left:83px}}
@media(prefers-reduced-motion:reduce){.eg-orbit{animation:none}.eg-progress>div{transition:none}}
.eg-why{background:#fff;border:1px solid #dce4df;border-radius:10px;padding:16px 20px;margin:0 0 24px}.eg-why h3{font-size:15px;margin:0 0 6px}.eg-why p{font-size:13px;line-height:1.75;margin:0;color:#516b58}
.eg-edge{cursor:pointer}.eg-edge:hover,.eg-edge:focus{opacity:1}.eg-edge-hit{fill:none;stroke:transparent;stroke-width:22;pointer-events:stroke}.eg-comment{margin:0 0 18px 110px;color:#637b68;font-size:12px}.eg-comment summary{cursor:pointer}.eg-timeline-item small{display:block;margin-top:5px;color:#678073}.eg-why p+p{margin-top:8px}
.eg-cause{border:0;background:none;text-align:left;padding:0;text-decoration:underline;text-underline-offset:3px}
.eg-unlinked>circle:nth-child(2){fill:#7c8982;stroke:#fff;stroke-width:2;stroke-dasharray:3 3}

/* Shared reader dialog and timeline styling */
.event-graph-dialog{border-color:var(--v-line);border-radius:20px;background:var(--v-canvas);color:var(--v-ink);box-shadow:0 26px 90px #211b6542}
.event-graph-dialog::backdrop{background:#161630a0}
.event-graph-dialog :focus-visible{outline-color:var(--v-accent)}
.eg-header,.eg-subhead,.eg-detail,.eg-footer{border-color:var(--v-line)}
.eg-header h2{font-family:var(--v-font);letter-spacing:-.03em;font-weight:700;margin:0}
.eg-header-actions{gap:8px}
.eg-header-actions button{color:var(--v-accent-dark);background:var(--v-soft);border-radius:8px;padding:5px 10px}
.eg-header-actions #egClose{line-height:1.2;color:var(--v-ink)}
.eg-stage{background-image:radial-gradient(#d0cbe9 1px,transparent 1px);background-size:21px 21px}
.eg-toolbar>div{border-color:var(--v-line);border-radius:10px;backdrop-filter:blur(8px)}
.eg-toolbar button{border-radius:7px;color:var(--v-muted);font-size:11px}
.eg-toolbar button.active,.eg-toolbar button:hover{background:var(--v-soft);color:var(--v-accent-dark)}
.eg-progress,.eg-orbit{border-color:#d2c8f3;background:var(--v-soft)}
.eg-progress>div,.eg-orbit span{background:var(--v-accent)}
.eg-node-title,.eg-edge text{fill:var(--v-text);stroke:var(--v-canvas)}
.eg-stage .eg-legend{background:#f5f5fbe8}
:is(.eg-legend,.eg-footer,.eg-canvas-hint,.eg-node-meta,.eg-node-summary,.eg-timeline-item p,.eg-timeline-item time,.eg-timeline-item span,.eg-subhead>span,.eg-detail-empty,.eg-loading p){color:var(--v-muted)}
.eg-why{border-color:var(--v-line);border-radius:12px;background:var(--v-surface)}
.eg-why p,.eg-timeline-item h3{color:var(--v-text)}
.eg-source,.eg-site-link{color:var(--v-accent-dark)}
.eg-timeline-item:hover h3,.eg-timeline-item:focus-visible h3{color:var(--v-accent-dark);text-decoration:underline;text-underline-offset:3px}
.eg-timeline-item:after{border-color:#c9c3e8}
.eg-detail summary,.eg-detail blockquote,.eg-relations article p{color:var(--v-muted)}
@media(max-width:650px){.event-graph-dialog{border-radius:12px}}
