* { margin: 0; padding: 0; box-sizing: border-box; }
.relation-graph-container { display: flex; flex-direction: column; align-items: center; }
.relation-graph { width: 500px; height: 500px; max-width: 100%; border: 1px solid #e0e0e0; border-radius: 0.875rem 0.875rem 0 0; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.relation-graph svg { display: block; width: 100%; height: 100%; }
.graph-console { width: 500px; max-width: 100%; height: 120px; margin-top: 1rem; background: #000; border-radius: 0.875rem; border: none; padding: 0.625rem 0.875rem; overflow-y: auto; font-family: 'Courier New', monospace; font-size: 0.6875rem; color: #fff; text-align: left; scrollbar-width: none; -ms-overflow-style: none; }
.graph-console::-webkit-scrollbar { display: none; }
.graph-console .log-line { margin: 0.125rem 0; }
.graph-console .log-line .log-text { display: inline; }
.graph-console .log-line .log-cursor { display: inline-block; width: 5px; height: 0.6875rem; background: #bbb; margin-left: 1px; animation: blink 0.6s step-end infinite; vertical-align: text-bottom; }
.graph-console .log-line.done .log-cursor { display: none; }
.graph-console .log-line::before { content: '> '; color: #999; }
.spinner-arc { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
.node-g, .edge-line { transition: opacity 0.4s ease; }
