:root{color:var(--text);background:var(--app-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--accent: #0f9b8e;--accent-dark: #087b72;--accent-soft: rgba(15, 155, 142, .12);--app-bg: #f6f8f8;--text: #1f2937;--heading: #111827;--line: #e3e8eb;--muted: #7c8796;--surface: rgba(255, 255, 255, .92);--surface-strong: #fff;--surface-soft: #f7f9fb;--input-bg: #fff;--nav-bg: rgba(255, 255, 255, .92);--shadow: 0 10px 30px rgba(31, 41, 55, .08);--soft-shadow: 0 5px 18px rgba(31, 41, 55, .06);--shell-width: 1536px;--page-gutter: 40px;color-scheme:light}.theme-dark{--accent: #37d8c5;--accent-dark: #78efe0;--accent-soft: rgba(55, 216, 197, .14);--app-bg: #07100f;--text: #d8e5e3;--heading: #f4fbfa;--line: rgba(153, 185, 179, .18);--muted: #90a7a3;--surface: rgba(14, 29, 27, .82);--surface-strong: #10201e;--surface-soft: #142421;--input-bg: #0d1b19;--nav-bg: rgba(12, 25, 23, .86);--shadow: 0 18px 46px rgba(0, 0, 0, .36);--soft-shadow: 0 10px 28px rgba(0, 0, 0, .25);color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100vh;min-height:100svh;overflow:hidden;background:var(--app-bg)}#root{min-height:100vh;min-height:100svh}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid rgba(15,155,142,.36);outline-offset:2px}*{scrollbar-color:rgba(15,155,142,.4) transparent;scrollbar-width:thin}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#0f9b8e4d;background-clip:content-box}*::-webkit-scrollbar-thumb:hover{background:#0f9b8e80;background-clip:content-box}.app-shell{height:100vh;height:100svh;display:flex;flex-direction:column;background:radial-gradient(circle at 8% 0%,rgba(15,155,142,.08),transparent 28rem),radial-gradient(circle at 92% 16%,rgba(240,151,69,.08),transparent 26rem),var(--app-bg);color:var(--text)}.header{position:sticky;top:0;z-index:20;height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 max(20px,calc((100vw - var(--shell-width)) / 2 + 20px));border-bottom:1px solid var(--line);background:var(--nav-bg);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);flex-shrink:0}.header-brand{display:inline-flex;align-items:center;gap:10px;color:var(--heading);font-size:18px;font-weight:800;white-space:nowrap}.header-brand .icon-wrap{width:36px;height:36px;display:grid;place-items:center;border:2px solid var(--accent);border-radius:50%;font-size:18px}.header-actions{display:flex;align-items:center;gap:10px}.header-search{height:36px;width:220px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--input-bg)}.header-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--heading);font-weight:600;font-size:14px}.header-search input::placeholder{color:var(--muted)}.theme-toggle{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--surface-strong);color:var(--accent-dark);box-shadow:var(--soft-shadow)}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:14px max(20px,calc((100vw - var(--shell-width)) / 2 + 20px));flex-shrink:0}.stat-card{display:grid;gap:4px;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--soft-shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.stat-card small{color:var(--muted);font-size:12px;font-weight:700}.stat-card b{color:var(--heading);font-size:24px;line-height:1.2}.stat-card .stat-sub{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.stat-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:700;background:var(--surface-soft);color:var(--muted)}.stat-chip .dot{width:8px;height:8px;border-radius:50%}.filter-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 max(20px,calc((100vw - var(--shell-width)) / 2 + 20px)) 10px;flex-shrink:0}.filter-chip{height:30px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface-strong);color:var(--muted);font-size:13px;font-weight:700;transition:all .2s ease}.filter-chip:hover{border-color:var(--accent);color:var(--accent-dark)}.filter-chip.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-dark)}.filter-chip .chip-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.graph-area{flex:1;display:flex;overflow:hidden;min-height:0;position:relative}.graph-container{flex:1;position:relative;overflow:hidden;min-width:0}.graph-container svg{width:100%;height:100%;display:block}.graph-edge{fill:none;stroke-width:1.2;opacity:.4;transition:opacity .2s ease}.theme-dark .graph-edge{stroke:#99b9b34d}.theme-light .graph-edge,:root .graph-edge{stroke:#cbd5e1}.graph-edge.highlighted{opacity:1;stroke-width:2}.graph-edge.dimmed{opacity:.06}.edge-label{font-size:9px;fill:var(--muted);pointer-events:none;text-anchor:middle;dominant-baseline:central;opacity:0;transition:opacity .2s ease}.edge-label.visible{opacity:1}.graph-node{cursor:pointer;transition:opacity .2s ease}.graph-node.dimmed{opacity:.12}.graph-node circle{stroke-width:2;transition:stroke-width .15s ease}.graph-node:hover circle,.graph-node.highlighted circle{stroke-width:3}.node-label{font-size:11px;font-weight:700;text-anchor:middle;dominant-baseline:central;pointer-events:none;fill:var(--heading)}.theme-dark .node-label{fill:var(--text)}.node-label.dimmed{opacity:.12}.detail-panel{width:360px;flex-shrink:0;border-left:1px solid var(--line);background:var(--surface);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);overflow-y:auto;transition:width .25s ease,opacity .25s ease}.detail-panel.collapsed{width:0;opacity:0;border-left:none;overflow:hidden}.detail-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);z-index:2}.detail-header h2{margin:0;font-size:18px;color:var(--heading);display:flex;align-items:center;gap:8px}.detail-type-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}.detail-close{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--muted)}.detail-body{padding:14px 18px 24px;display:grid;gap:16px}.detail-section{display:grid;gap:8px}.detail-section-title{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.5px}.detail-entity-list{display:flex;flex-wrap:wrap;gap:6px}.detail-entity-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);font-size:13px;font-weight:600;color:var(--text);cursor:pointer;transition:all .15s ease}.detail-entity-chip:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-dark)}.detail-entity-chip .chip-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.empty-state{display:grid;justify-items:center;gap:8px;padding:32px 20px;color:var(--muted);text-align:center}.empty-state b{color:var(--heading);font-size:15px}.empty-state small{font-size:13px;line-height:1.6}.graph-controls{position:absolute;bottom:16px;right:16px;display:flex;flex-direction:column;gap:4px;z-index:10}.graph-controls button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--heading);box-shadow:var(--soft-shadow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.graph-controls button:hover{border-color:var(--accent);color:var(--accent-dark)}.graph-legend{position:absolute;bottom:16px;left:16px;display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--soft-shadow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:10;max-width:320px}.legend-item{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;color:var(--muted);cursor:pointer;padding:2px 6px;border-radius:4px;transition:background .15s ease}.legend-item:hover{background:var(--accent-soft)}.legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}@media(max-width:768px){.stats-row{grid-template-columns:repeat(2,1fr);gap:8px;padding:10px 14px}.filter-bar{padding:0 14px 8px;overflow-x:auto;flex-wrap:nowrap}.filter-chip{flex-shrink:0}.detail-panel{position:absolute;top:0;right:0;bottom:0;width:320px;z-index:30;box-shadow:-10px 0 40px #00000026}.detail-panel.collapsed{width:0}.header-search{width:160px}.graph-legend{display:none}}.arrow-marker{fill:#94a3b8}.theme-dark .arrow-marker{fill:#99b9b380}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.stat-card{animation:fadeIn .3s ease backwards}.stat-card:nth-child(1){animation-delay:0s}.stat-card:nth-child(2){animation-delay:.05s}.stat-card:nth-child(3){animation-delay:.1s}.stat-card:nth-child(4){animation-delay:.15s}.stat-card:nth-child(5){animation-delay:.2s}.top-entities{display:grid;gap:4px}.top-entity-row{display:grid;grid-template-columns:20px minmax(0,1fr) 32px;gap:8px;align-items:center;font-size:13px}.top-entity-row b{color:#f97316;font-style:italic}.top-entity-row span{text-align:right;color:var(--muted);font-size:12px}
