        /* 4. CENTER SECTION: INTERACTIVE KNOWLEDGE GRAPH */
        .graph-section-wrapper {
            position: relative;
            background: rgba(12, 14, 19, 0.95);
        }

        .graph-controls-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .graph-tools-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Radar Toolbar Buttons */
        .btn-graph-tool {
            background: var(--surface-container);
            border: 1px solid var(--seam-border);
            color: var(--text-surface);
            padding: 0.3rem 0.65rem;
            border-radius: var(--radius-sm);
            font-size: 0.6875rem;
            font-family: 'JetBrains Mono', monospace;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .btn-graph-tool:hover, .btn-graph-tool.active {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(6, 182, 212, 0.1);
        }

        /* Radar Header Block */
        .radar-header-block {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--seam-border-subtle);
        }

        .radar-title-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .radar-badge-tag {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            color: var(--primary);
        }

        .btn-graph-fullscreen {
            background: rgba(76, 215, 246, 0.12);
            border: 1px solid var(--seam-border);
            color: var(--primary);
            width: 26px;
            height: 26px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }

        .btn-graph-fullscreen:hover {
            background: var(--primary);
            color: var(--canvas);
            box-shadow: 0 0 8px var(--glow-cyan);
        }

        .radar-tools-row {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            flex-wrap: wrap;
        }

        .radar-tools-row .btn-graph-tool {
            padding: 0.2rem 0.45rem;
            font-size: 0.625rem;
        }

        #graph-container {
            width: 100%;
            min-height: 280px;
            height: 280px;
            flex-shrink: 0;
            background: #080b12;
            border: 1px solid var(--seam-border);
            border-radius: var(--radius-md);
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.85);
        }

        .graph-telemetry-pin {
            position: relative;
            width: 100%;
            flex-shrink: 0;
            padding: 0.85rem;
            background: rgba(17, 19, 25, 0.92);
            border: 1px solid var(--seam-border);
            border-radius: var(--radius-sm);
            font-size: 0.6875rem;
            color: var(--text-muted);
            box-shadow: 0 4px 16px rgba(0,0,0,0.4);
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
        }

        .graph-telemetry-pin.pin-pulse {
            border-color: var(--primary);
            box-shadow: 0 0 18px rgba(6, 182, 212, 0.4);
        }

        .pin-title {
            color: var(--primary);
            font-weight: 700;
            font-size: 0.75rem;
            margin-bottom: 0.35rem;
            text-transform: uppercase;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.35;
        }

        .pin-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }

        .pin-row span:last-child {
            color: var(--text-primary);
            font-weight: 600;
        }

        /* Fullscreen Graph Modal Overlay */
        .graph-modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 3000;
            background: rgba(7, 9, 14, 0.96);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            display: flex;
            flex-direction: column;
            padding: 1.5rem;
            gap: 1rem;
            animation: fadeInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes fadeInModal {
            from { opacity: 0; transform: scale(0.98); }
            to { opacity: 1; transform: scale(1); }
        }

        .graph-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--seam-border);
        }

        .graph-modal-title-wrap {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .graph-modal-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: 0.04em;
        }

        .graph-modal-subtitle {
            font-size: 0.6875rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .graph-modal-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-graph-modal-close {
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.35);
            color: #f87171;
            width: 32px;
            height: 32px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-size: 1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }

        .btn-graph-modal-close:hover {
            background: #ef4444;
            color: #fff;
        }

        #modal-graph-container {
            flex: 1;
            width: 100%;
            min-height: 500px;
            border: 1px solid var(--seam-border);
            border-radius: var(--radius-md);
            background: #080b12;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
        }


/* =========================================================================
   D3 GRAPH INTERACTIVE NODE LABELS & NODE INSPECTOR
   ========================================================================= */

.graph-node-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 600;
    pointer-events: none;
    fill: #f1f5f9;
    paint-order: stroke fill;
    stroke: rgba(7, 9, 14, 0.95);
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.22s ease, font-size 0.2s ease, fill 0.2s ease;
    user-select: none;
}

.graph-node-label.headliner {
    font-size: 10px;
    font-weight: 700;
    fill: #38bdf8;
    letter-spacing: 0.02em;
    stroke-width: 3.5px;
}

.graph-node-label.active {
    font-size: 11px !important;
    font-weight: 800 !important;
    fill: #fef08a !important;
    stroke: #07090e !important;
    stroke-width: 4px !important;
    opacity: 1 !important;
}

.graph-node-label.neighbor {
    font-size: 9px !important;
    font-weight: 600 !important;
    fill: #93c5fd !important;
    stroke-width: 3px !important;
    opacity: 0.85 !important;
}

.graph-node-label.hub {
    font-size: 9.5px;
    font-weight: 600;
    fill: #4edea3;
}

/* Floating Node Inspector Panel */
.node-inspector-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 320px;
    max-height: calc(100% - 2rem);
    background: rgba(17, 19, 25, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(76, 215, 246, 0.28);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 16px rgba(76, 215, 246, 0.15);
    z-index: 50;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.node-inspector-panel.active {
    display: flex;
}

.inspector-header {
    padding: 0.75rem 1rem;
    background: rgba(29, 32, 37, 0.8);
    border-bottom: 1px solid var(--seam-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inspector-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inspector-type-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: rgba(76, 215, 246, 0.15);
    color: var(--primary);
    border: 1px solid rgba(76, 215, 246, 0.3);
}

.inspector-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.inspector-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.inspector-body {
    padding: 1rem;
    overflow-y: auto;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.inspector-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.inspector-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.inspector-track-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(78, 222, 163, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(78, 222, 163, 0.25);
}

.inspector-preprints-section {
    margin-top: 0.25rem;
    border-top: 1px solid var(--seam-border-subtle);
    padding-top: 0.75rem;
}

.inspector-preprints-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.inspector-preprints-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 150px;
    overflow-y: auto;
}

.inspector-preprint-item {
    padding: 0.35rem 0.5rem;
    background: rgba(12, 14, 19, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-surface);
    transition: all 0.15s ease;
}

.inspector-preprint-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.inspector-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inspector-filter-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.inspector-filter-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 12px var(--glow-cyan);
}

/* =========================================================================
   LIGHT THEME OVERRIDES FOR D3 GRAPH & LABELS
   ========================================================================= */
[data-theme="light"] .graph-node-label {
    fill: #0f172a !important;
    font-weight: 600;
    stroke: rgba(255, 255, 255, 0.95) !important;
    stroke-width: 3px !important;
}

[data-theme="light"] .graph-node-label.headliner {
    fill: #0284c7 !important;
    stroke: #ffffff !important;
}

[data-theme="light"] .graph-node-label.active {
    fill: #b45309 !important;
    stroke: #ffffff !important;
    stroke-width: 4px !important;
}

[data-theme="light"] .graph-node-label.neighbor {
    fill: #0369a1 !important;
    stroke: #ffffff !important;
}

[data-theme="light"] .graph-node-label.hub {
    fill: #059669 !important;
    stroke: #ffffff !important;
}

[data-theme="light"] .graph-link {
    stroke: rgba(100, 116, 139, 0.25) !important;
}

[data-theme="light"] .graph-section-wrapper {
    background: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .node-inspector-panel {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(14, 116, 144, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .graph-telemetry-pin {
    background: #ffffff;
    border-color: rgba(14, 116, 144, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* =========================================================================
   OPTION A: CONCENTRIC RADAR & SURPRISE METRICS STYLES
   ========================================================================= */
.pin-surprise-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm, 3px);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
    font-size: 0.6875rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.radar-concentric-grid,
.radar-concentric-grid * {
    pointer-events: none;
    user-select: none;
}

[data-theme="light"] .pin-surprise-badge {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(217, 119, 6, 0.45);
    color: #d97706;
}

[data-theme="light"] .radar-concentric-grid circle {
    opacity: 0.85;
}

[data-theme="light"] .radar-concentric-grid text {
    fill: #475569 !important;
    font-weight: 700;
}


