/* ═══════════════════════════════════════════════════════════
   Knowledge Graph v2 — Layout: Sidebar | Graph | Info Panel
   ═══════════════════════════════════════════════════════════ */

/* Container: sidebar + main area */
.kgv2-layout {
    display: flex;
    width: 100%; height: 100%;
    min-height: 60vh;
}

/* ── Left Sidebar ── */
.kgv2-sidebar {
    width: 170px;
    min-width: 170px;
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    padding: 12px 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(8px);
}

.kgv2-sb-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 4px 8px 8px 8px;
    font-weight: 700;
}

.kgv2-sb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.72rem;
    color: #cbd5e1;
    user-select: none;
}
.kgv2-sb-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}
.kgv2-sb-item.active {
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    font-weight: 600;
}

.kgv2-sb-icon { font-size: 0.85rem; width: 18px; text-align: center; flex-shrink: 0; }
.kgv2-sb-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kgv2-sb-count {
    font-size: 0.6rem; color: #475569;
    background: rgba(255,255,255,0.06);
    padding: 1px 6px; border-radius: 8px;
    flex-shrink: 0;
}

.kgv2-sb-actions {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px;
}

.kgv2-sb-btn {
    width: 100%;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid rgba(148,163,184,0.15);
    background: rgba(59,130,246,0.12);
    color: #93c5fd;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.15s;
}
.kgv2-sb-btn:hover {
    background: rgba(59,130,246,0.25);
    color: #fff;
}
.kgv2-sb-btn-secondary {
    background: rgba(148,163,184,0.08);
    color: #94a3b8;
}
.kgv2-sb-btn-secondary:hover {
    background: rgba(148,163,184,0.18);
    color: #cbd5e1;
}

.kgv2-sb-legend {
    margin-top: 4px;
    padding: 4px 4px 0;
    font-size: 0.68rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kgv2-sb-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 6px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s;
}
.kgv2-sb-legend-item:hover {
    background: rgba(148,163,184,0.1);
}
.kgv2-sb-legend-item[data-active] .kgv2-sb-legend-label {
    color: #e2e8f0;
}
.kgv2-sb-legend-item:not([data-active]) .kgv2-sb-legend-label {
    color: #475569;
    text-decoration: line-through;
}
.kgv2-sb-legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.kgv2-sb-legend-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kgv2-sb-legend-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    padding: 2px 5px;
}
.kgv2-sb-legend-act {
    flex: 1;
    padding: 3px 6px;
    font-size: 0.6rem;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}
.kgv2-sb-legend-act:hover {
    background: #334155;
    color: #e2e8f0;
}

/* ── Floating Color Legend Bar ── */
.kgv2-float-legend {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    transition: all 0.3s ease;
    max-width: 90%;
    overflow: hidden;
}
.kgv2-fl-toggle {
    flex-shrink: 0;
    width: 22px; height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    font-size: 0.65rem;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    margin-right: 4px;
}
.kgv2-fl-toggle:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}
.kgv2-fl-items {
    display: flex;
    align-items: center;
    gap: 1px;
}
.kgv2-fl-item {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.kgv2-fl-item:hover {
    background: rgba(148, 163, 184, 0.12);
}
.kgv2-fl-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.kgv2-fl-label {
    display: inline-block;
    font-size: 0.58rem;
    color: #94a3b8;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    vertical-align: middle;
    transition: max-width 0.3s, opacity 0.2s, color 0.15s;
}
.kgv2-fl-item[data-active] .kgv2-fl-label {
    color: #cbd5e1;
}
.kgv2-fl-item:not([data-active]) .kgv2-fl-dot {
    opacity: 0.25;
}
.kgv2-fl-item:not([data-active]) .kgv2-fl-label {
    color: #475569;
}

/* Expanded: show labels */
.kgv2-float-legend.kgv2-fl-expanded {
    padding: 6px 12px;
    border-radius: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.kgv2-float-legend.kgv2-fl-expanded .kgv2-fl-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}
.kgv2-float-legend.kgv2-fl-expanded .kgv2-fl-label {
    max-width: 60px;
    opacity: 1;
}
.kgv2-float-legend.kgv2-fl-expanded .kgv2-fl-item {
    padding: 3px 7px;
}
.kgv2-float-legend.kgv2-fl-expanded .kgv2-fl-dot {
    width: 9px; height: 9px;
}
.kgv2-fl-actions {
    display: none;
    gap: 3px;
    margin-left: 4px;
}
.kgv2-float-legend.kgv2-fl-expanded .kgv2-fl-actions {
    display: flex;
}
.kgv2-fl-act {
    padding: 2px 7px;
    font-size: 0.55rem;
    background: rgba(148, 163, 184, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.kgv2-fl-act:hover {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

/* ── Main Graph Area ── */
.kgv2-graph-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0f172a 0%, #020617 100%);
}

.kgv2-graph-container {
    width: 100%; height: 100%;
    min-height: 55vh;
}

.kgv2-graph-container svg {
    display: block;
}

/* ── Loading ── */
.kgv2-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.85rem;
    background: rgba(2, 6, 23, 0.7);
    z-index: 10;
    backdrop-filter: blur(2px);
}
.kgv2-loading::before {
    content: '';
    width: 20px; height: 20px;
    border: 2px solid rgba(148,163,184,0.2);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: kgv2-spin 0.8s linear infinite;
    margin-right: 10px;
}
@keyframes kgv2-spin { to { transform: rotate(360deg); } }

/* ── Tooltip ── */
.kgv2-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    line-height: 1.5;
    border: 1px solid rgba(148,163,184,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    z-index: 100;
    max-width: 220px;
    backdrop-filter: blur(8px);
}

/* ── Right Info Panel ── */
.kgv2-info-panel {
    position: absolute;
    top: 0; right: -340px;
    width: 320px;
    height: 100%;
    background: rgba(15, 23, 42, 0.97);
    border-left: 1px solid rgba(148,163,184,0.15);
    backdrop-filter: blur(12px);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    overflow-y: auto;
    padding: 16px;
    color: #e2e8f0;
}
.kgv2-info-panel.open {
    right: 0;
}

.kgv2-ip-close {
    position: absolute;
    top: 8px; right: 12px;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.kgv2-ip-close:hover { background: rgba(255,255,255,0.06); color: #cbd5e1; }

.kgv2-ip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-right: 28px;
}
.kgv2-ip-icon { font-size: 1.6rem; }
.kgv2-ip-name { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.kgv2-ip-type { font-size: 0.7rem; color: #64748b; margin-top: 2px; }

.kgv2-ip-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.kgv2-ip-stat {
    flex: 1;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 8px 4px;
}
.kgv2-ip-stat-val { display: block; font-size: 1.1rem; font-weight: 700; color: #60a5fa; }
.kgv2-ip-stat-label { display: block; font-size: 0.6rem; color: #64748b; margin-top: 2px; }

.kgv2-ip-section-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 700;
}

.kgv2-ip-neighbors {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}
.kgv2-ip-nb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s;
    font-size: 0.72rem;
}
.kgv2-ip-nb:hover { background: rgba(59,130,246,0.12); }
.kgv2-ip-nb-icon { font-size: 0.9rem; width: 20px; text-align: center; flex-shrink: 0; }
.kgv2-ip-nb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kgv2-ip-nb-type { font-size: 0.6rem; color: #475569; flex-shrink: 0; }

.kgv2-ip-link {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background: rgba(59,130,246,0.15);
    color: #93c5fd;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: background 0.15s;
}
.kgv2-ip-link:hover { background: rgba(59,130,246,0.28); color: #fff; text-decoration: none; }

/* ── D3 Elements ── */
.kgv2-node {
    transition: opacity 0.2s;
}
.kgv2-node:hover {
    filter: brightness(1.3);
}

.kgv2-link {
    stroke-linecap: round;
    transition: stroke-opacity 0.2s;
}
.kgv2-link-cooccur { stroke: rgba(148, 163, 184, 0.25); stroke-width: 1; }
.kgv2-link-supply { stroke: #d4af37; stroke-width: 1.5; stroke-opacity: 0.5; }
.kgv2-link-patent { stroke: #6366f1; stroke-width: 1.5; stroke-opacity: 0.35; stroke-dasharray: 3 2; }

.kgv2-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ── Search Box ── */
.kgv2-search-wrap {
    position: relative;
    margin-bottom: 6px;
}

.kgv2-search-input {
    width: 100%;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid rgba(148,163,184,0.2);
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
    font-size: 0.65rem;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.kgv2-search-input::placeholder { color: #475569; }
.kgv2-search-input:focus {
    border-color: rgba(59,130,246,0.5);
    background: rgba(255,255,255,0.1);
}

.kgv2-search-results {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 6px;
    margin-top: 2px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 150;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.kgv2-search-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 0.68rem;
    color: #cbd5e1;
    transition: background 0.1s;
}
.kgv2-search-item:hover { background: rgba(59,130,246,0.15); }
.kgv2-search-item b { color: #f59e0b; font-weight: 700; }

.kgv2-search-item-icon { font-size: 0.8rem; width: 16px; text-align: center; flex-shrink: 0; }
.kgv2-search-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kgv2-search-item-type {
    font-size: 0.58rem;
    color: #475569;
    background: rgba(255,255,255,0.05);
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.kgv2-search-empty {
    padding: 10px 8px;
    text-align: center;
    color: #475569;
    font-size: 0.65rem;
}

/* ── Path Query Section ── */
.kgv2-path-section {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(148,163,184,0.08);
}

.kgv2-path-input {
    width: 100%;
    padding: 4px 7px;
    border-radius: 4px;
    border: 1px solid rgba(148,163,184,0.15);
    background: rgba(255,255,255,0.04);
    color: #e2e8f0;
    font-size: 0.62rem;
    outline: none;
    margin-top: 3px;
    box-sizing: border-box;
}
.kgv2-path-input::placeholder { color: #334155; }
.kgv2-path-input:focus {
    border-color: rgba(245,158,11,0.4);
    background: rgba(255,255,255,0.07);
}

.kgv2-path-actions {
    display: flex;
    gap: 3px;
    margin-top: 3px;
}

.kgv2-path-result {
    margin-top: 4px;
    padding: 6px 8px;
    background: rgba(245,158,11,0.08);
    border-radius: 5px;
    font-size: 0.62rem;
    color: #cbd5e1;
    line-height: 1.6;
    word-break: break-all;
}

/* ── Info Panel: Supplier badge ── */
.kgv2-ip-nb-supplier {
    background: rgba(245,158,11,0.08);
    border-radius: 6px;
    margin-bottom: 1px;
}
.kgv2-ip-nb-supplier:hover { background: rgba(245,158,11,0.18); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .kgv2-layout { flex-direction: column; }
    .kgv2-sidebar {
        width: 100%; min-width: unset;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px;
        overflow-y: visible;
    }
    .kgv2-sb-title { display: none; }
    .kgv2-sb-item { font-size: 0.62rem; padding: 4px 6px; }
    .kgv2-sb-count { display: none; }
    .kgv2-sb-actions { flex-direction: row; }
    /* legend stays visible on mobile */
    .kgv2-search-wrap { display: none; }
    .kgv2-path-section { display: none; }
    .kgv2-info-panel { width: 100%; right: -100%; }
}


/* ═══════════════════════════════════════════════════════════
   Phase 1: Commercial Enhancement — Supplier/Pricing/Demand
   ═══════════════════════════════════════════════════════════ */

/* Price range banner at top of panel */
.kgv2-ip-price-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    text-align: center;
}
.kgv2-ip-price-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
}
.kgv2-ip-price-sep {
    color: #94a3b8;
    font-size: 1.2rem;
    margin: 0 4px;
}
.kgv2-ip-price-unit {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: 4px;
}

/* Supplier card list */
.kgv2-ip-supplier-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

/* Individual supplier card */
.kgv2-ip-supplier-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.kgv2-ip-supplier-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.kgv2-ip-sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.kgv2-ip-sc-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    flex: 1;
}
.kgv2-ip-sc-badge {
    font-size: 0.7rem;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.kgv2-ip-sc-prices {
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 4px;
}
.kgv2-ip-sc-price {
    font-weight: 700;
    color: #0f172a;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
}
.kgv2-ip-sc-price-sep {
    color: #94a3b8;
    margin: 0 4px;
}
.kgv2-ip-sc-unit {
    color: #94a3b8;
    font-size: 0.75rem;
}

.kgv2-ip-sc-sizes {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
}

.kgv2-ip-sc-link {
    font-size: 0.8rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.kgv2-ip-sc-link:hover {
    text-decoration: underline;
}

/* Action buttons bar */
.kgv2-ip-action-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.kgv2-ip-btn {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.kgv2-ip-btn:hover { opacity: 0.85; text-decoration: none; }
.kgv2-ip-btn-primary {
    background: #2563eb;
    color: #fff;
}
.kgv2-ip-btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1.5px solid #2563eb;
}

/* No-supplier empty state */
.kgv2-ip-no-supplier {
    text-align: center;
    padding: 20px 12px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    margin-bottom: 14px;
}
.kgv2-ip-ns-icon { font-size: 2rem; margin-bottom: 8px; }
.kgv2-ip-ns-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
}
.kgv2-ip-ns-cta {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    border: 1px solid #2563eb;
    padding: 6px 16px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.kgv2-ip-ns-cta:hover {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
}

/* Demand matches list */
.kgv2-ip-demand-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.kgv2-ip-demand-item {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 8px 10px;
}
.kgv2-ip-di-title {
    font-weight: 600;
    font-size: 0.82rem;
    color: #1e40af;
    margin-bottom: 3px;
}
.kgv2-ip-di-desc {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 4px;
}
.kgv2-ip-di-meta {
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    gap: 12px;
}


/* ═══════════════════════════════════════════════════════════
   Phase 2: Supplier checkboxes + compare bar
   ═══════════════════════════════════════════════════════════ */

/* Supplier card as <label> — click anywhere to toggle */
.kgv2-ip-supplier-card {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    user-select: none;
}
.kgv2-ip-supplier-card:has(:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(59,130,246,0.3);
}

/* Checkbox inside supplier card */
.kgv2-ip-sc-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* Body content (to the right of checkbox) */
.kgv2-ip-sc-body {
    flex: 1;
    min-width: 0;
}

/* Clickable supplier name */
.kgv2-ip-sc-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    text-decoration: none;
    flex: 1;
}
.kgv2-ip-sc-name:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ── Compare bar ── */
.kgv2-ip-compare-bar {
    background: #fff;
    border: 1.5px solid #3b82f6;
    border-radius: 10px;
    margin: 0 0 14px 0;
    overflow: hidden;
    animation: kgv2SlideUp 0.25s ease-out;
}

@keyframes kgv2SlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kgv2-ip-cb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
}
.kgv2-ip-cb-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e40af;
}
.kgv2-ip-cb-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}
.kgv2-ip-cb-close:hover {
    background: #dbeafe;
    color: #1e40af;
}

/* Compare cards (vertical, one per selected supplier) */
.kgv2-ip-cb-table {
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
}

.kgv2-ip-cb-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.kgv2-ip-cb-card-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}
.kgv2-ip-cb-card-name:hover {
    color: #2563eb;
    text-decoration: underline;
}

.kgv2-ip-cb-card-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kgv2-ip-cb-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 2px 0;
}

.kgv2-ip-cb-stat-label {
    color: #64748b;
    font-weight: 500;
}

.kgv2-ip-cb-stat-val {
    color: #0f172a;
    font-weight: 600;
    font-family: 'SF Mono', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.82rem;
}

/* Inquiry link in compare bar */
.kgv2-ip-cb-inquiry {
    display: block;
    text-align: center;
    padding: 8px 0;
    margin: 4px 10px 10px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.kgv2-ip-cb-inquiry:hover {
    background: #1d4ed8;
    text-decoration: none;
    color: #fff;
}


/* ── Material family: grade chips ── */
.kgv2-ip-grade-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.kgv2-ip-grade-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #dc2626;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.kgv2-ip-grade-chip:hover {
    background: #fee2e2;
    border-color: #f87171;
    text-decoration: none;
}

/* Material family inquiry prompt */
.kgv2-ip-grade-inquiry {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 12px;
}
.kgv2-ip-grade-inquiry a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.kgv2-ip-grade-inquiry a:hover {
    text-decoration: underline;
}

/* ── Search empty state inquiry CTA ── */
.kgv2-search-inquiry {
    display: block;
    text-align: center;
    margin-top: 8px;
    padding: 6px 12px;
    background: #2563eb;
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}
.kgv2-search-inquiry:hover {
    background: #1d4ed8;
    text-decoration: none;
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════
   KG Inquiry Modal (voice + templates)
   ═══════════════════════════════════════════════════════════ */

.kgv2-inquiry-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 20010;
    align-items: center;
    justify-content: center;
    animation: kgv2FadeIn 0.2s ease;
}

@keyframes kgv2FadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.kgv2-inquiry-dialog {
    background: #fff;
    border-radius: 16px;
    width: 480px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    animation: kgv2SlideUp 0.25s ease-out;
}

.kgv2-inquiry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.kgv2-inquiry-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.kgv2-inquiry-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}
.kgv2-inquiry-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.kgv2-inquiry-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Section label */
.kgv2-iq-section {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Template buttons */
.kgv2-iq-templates {
    display: flex;
    gap: 8px;
}

.kgv2-iq-tpl {
    flex: 1;
    padding: 8px 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.15s;
    text-align: center;
}
.kgv2-iq-tpl:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
}

/* Labels */
.kgv2-iq-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Inputs */
.kgv2-iq-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.kgv2-iq-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.kgv2-iq-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #0f172a;
    background: #fff;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.kgv2-iq-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* Voice button */
.kgv2-iq-voice-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}
.kgv2-iq-voice-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* Row (name + phone side by side) */
.kgv2-iq-row {
    display: flex;
    gap: 10px;
}

/* Submit button */
.kgv2-iq-submit {
    width: 100%;
    padding: 11px 0;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}
.kgv2-iq-submit:hover {
    background: #1d4ed8;
}
.kgv2-iq-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Error / Success messages */
.kgv2-iq-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.kgv2-iq-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.88rem;
    text-align: center;
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   Phase 3: Smart Matching Tab
   ═══════════════════════════════════════════════════════════ */

/* Tab bar */
.kgv2-ip-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 12px;
}
.kgv2-ip-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    text-align: center;
}
.kgv2-ip-tab:hover {
    color: #374151;
    background: #f9fafb;
}
.kgv2-ip-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

/* Match form */
.kgv2-match-form {
    padding: 4px 0 12px;
}
.kgv2-match-field {
    margin-bottom: 10px;
}
.kgv2-match-field label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}
.kgv2-match-field input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    color: #1f2937;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.kgv2-match-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.kgv2-match-field input[readonly] {
    background: #f3f4f6;
    color: #6b7280;
}
.kgv2-match-row {
    display: flex;
    gap: 8px;
}
.kgv2-match-row .kgv2-match-field {
    flex: 1;
}

.kgv2-match-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(37,99,235,0.2);
}
.kgv2-match-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 4px 8px rgba(37,99,235,0.3);
    transform: translateY(-1px);
}

/* Match results */
.kgv2-match-loading {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    font-size: 13px;
}
.kgv2-match-empty {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
    font-size: 13px;
}
.kgv2-match-error {
    text-align: center;
    padding: 16px;
    color: #ef4444;
    font-size: 13px;
    background: #fef2f2;
    border-radius: 8px;
}
.kgv2-match-price-summary {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #166534;
}
.kgv2-match-count {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}
.kgv2-match-count strong {
    color: #2563eb;
}

/* Match cards */
.kgv2-match-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
}
.kgv2-match-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 6px rgba(37,99,235,0.08);
}
.kgv2-match-card.kgv2-match-best {
    border-left: 3px solid #22c55e;
    background: #f0fdf4;
}
.kgv2-match-card.kgv2-match-good {
    border-left: 3px solid #3b82f6;
    background: #eff6ff;
}
.kgv2-match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.kgv2-match-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}
.kgv2-match-card-score {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
}
.kgv2-match-best .kgv2-match-card-score {
    color: #16a34a;
}
.kgv2-match-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 4px;
}
.kgv2-match-card-size {
    font-size: 11px;
    color: #059669;
    margin-bottom: 6px;
}
.kgv2-match-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}
.kgv2-match-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}
.kgv2-match-tag-precise {
    background: #fef3c7;
    color: #92400e;
}
.kgv2-match-tag-tds {
    background: #dbeafe;
    color: #1e40af;
}
.kgv2-match-tag-credit {
    background: #fce7f3;
    color: #9d174d;
}
.kgv2-match-tag-source {
    background: #f3f4f6;
    color: #6b7280;
}
.kgv2-match-card-hl {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}


/* ── Phase 3.5: Expired badge, process tag, family badge ── */
.kgv2-ip-sc-expired {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 500;
}
.kgv2-ip-sc-process {
    font-size: 11px;
    color: #6366f1;
    margin-top: 3px;
}

/* ── Phase 3.6: TDS Sheet ── */
.kgv2-ip-tds-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fafafa;
}
.kgv2-ip-tds-header {
    padding: 8px 12px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    cursor: pointer;
    font-size: 13px;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kgv2-ip-tds-header:hover { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.kgv2-ip-tds-toggle {
    font-size: 10px;
    transition: transform 0.2s;
    color: #10b981;
}
.kgv2-ip-tds-process {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 4px;
}
.kgv2-ip-tds-body { padding: 8px 12px; }
.kgv2-ip-tds-sem { margin-bottom: 8px; text-align: center; }
.kgv2-ip-tds-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 3px;
}
.kgv2-ip-tds-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 8px 0 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid #e5e7eb;
}
.kgv2-ip-tds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-bottom: 6px;
}
.kgv2-ip-tds-table th {
    background: #f1f5f9;
    padding: 3px 8px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
.kgv2-ip-tds-table td {
    padding: 2px 8px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.kgv2-ip-tds-table tr:last-child td { border-bottom: none; }
/* ═══════════════════════════════════════════════════════════════
   KG v2 — AI Agent Panel (Phase 1 图谱智能体)
   ═══════════════════════════════════════════════════════════════ */
.kgv2-agent-panel {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 40;
    width: 340px;
    max-height: 46%;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    color: #e2e8f0;
    animation: kgv2SlideUp 0.3s ease-out;
}
.kgv2-agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    cursor: pointer;
    user-select: none;
}
.kgv2-agent-title { font-size: 0.9rem; font-weight: 600; }
.kgv2-agent-fold {
    background: none; border: none; color: #94a3b8;
    font-size: 1rem; cursor: pointer; padding: 0 4px;
}
.kgv2-agent-body { padding: 10px 14px 12px; overflow-y: auto; }
.kgv2-agent-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.kgv2-agent-chip {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.2s;
}
.kgv2-agent-chip:hover { background: rgba(59, 130, 246, 0.25); }
.kgv2-agent-status {
    font-size: 0.78rem;
    color: #fbbf24;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.kgv2-agent-dots i {
    display: inline-block;
    width: 4px; height: 4px;
    margin-left: 4px;
    background: #fbbf24;
    border-radius: 50%;
    vertical-align: middle;
    animation: kgv2AgentDot 1s ease-in-out infinite;
}
.kgv2-agent-dots i:nth-child(2) { animation-delay: 0.15s; }
.kgv2-agent-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes kgv2AgentDot {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}
.kgv2-agent-answer {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #e2e8f0;
    margin-bottom: 8px;
    max-height: 180px;
    overflow-y: auto;
}
.kgv2-agent-answer a { color: #d4af37; }
.kgv2-agent-steps {
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px dashed rgba(148, 163, 184, 0.2);
    padding-top: 6px;
    margin-bottom: 8px;
    max-height: 130px;
    overflow-y: auto;
}
.kgv2-agent-steps-title { color: #f59e0b; font-weight: 600; margin-bottom: 4px; }
.kgv2-agent-step { padding: 2px 0; }
.kgv2-agent-step-n {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-radius: 4px;
    padding: 0 5px;
    margin-right: 5px;
    font-weight: 700;
}
.kgv2-agent-step-type { color: #64748b; }
.kgv2-agent-step-ev {
    color: #64748b;
    font-size: 0.7rem;
    padding-left: 22px;
    word-break: break-all;
}
.kgv2-agent-input-row { display: flex; gap: 6px; }
.kgv2-agent-input-row input {
    flex: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    padding: 7px 10px;
    color: #e2e8f0;
    font-size: 0.78rem;
    outline: none;
}
.kgv2-agent-input-row input:focus { border-color: #f59e0b; }
.kgv2-agent-input-row button {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.kgv2-agent-input-row button:hover { opacity: 0.9; }

/* Neural activation effects (hop-by-hop path animation) */
.kgv2-node-activated {
    stroke: #f59e0b !important;
    animation: kgv2NodePulse 0.8s ease-in-out infinite;
}
@keyframes kgv2NodePulse {
    0%, 100% { stroke-width: 2px; filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.4)); }
    50% { stroke-width: 6px; filter: drop-shadow(0 0 16px rgba(245, 158, 11, 1)); }
}
.kgv2-link-active {
    stroke: #f59e0b !important;
    stroke-opacity: 1 !important;
    stroke-width: 3px !important;
    stroke-dasharray: 10 6;
    animation: kgv2LinkPulse 0.6s linear infinite;
}
@keyframes kgv2LinkPulse {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -16; }
}

@media (max-width: 768px) {
    .kgv2-agent-panel {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 10px;
        max-height: 42%;
    }
}
/* ═══════════════════════════════════════════════════════════════
   KG v2 — Phase 2/3 mined semantic relation edges (neural synapses)
   ═══════════════════════════════════════════════════════════════ */
.kgv2-link-mined {
    stroke: #22d3ee;
    stroke-width: 1.2;
    stroke-opacity: 0.5;
    stroke-dasharray: 7 5;
}
.kgv2-link-mined:hover { stroke-opacity: 0.9; }
.kgv2-fl-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(148, 163, 184, 0.3);
    margin: 0 6px;
    vertical-align: middle;
}
.kgv2-fl-edge { cursor: default; }
.kgv2-fl-line {
    display: inline-block;
    width: 14px;
    height: 0;
    border-top: 2px solid #d4af37;
    vertical-align: middle;
}
.kgv2-fl-line-mined { border-top: 2px dashed #22d3ee; }
.kgv2-fl-line-patent { border-top: 2px dashed #6366f1; }
.kgv2-fl-line-cooccur { border-top: 2px solid rgba(148, 163, 184, 0.5); }
.kgv2-agent-replay {
    background: none;
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #f59e0b;
    border-radius: 6px;
    font-size: 0.68rem;
    padding: 1px 8px;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
}
.kgv2-agent-replay:hover { background: rgba(245, 158, 11, 0.15); }

/* ═══════════════════════════════════════════════════════════════
   KG v2 — Phase 3 全图神经视觉：力导向动效 + 发光脉冲常态化
   ═══════════════════════════════════════════════════════════════ */

/* Persistent glow halo under every node (opacity driven by sim tick) */
.kgv2-node-halo { pointer-events: none; }

/* Mined semantic edges: perpetual synapse flow (cyan pulses travel along) */
.kgv2-link-mined { animation: kgv2MinedFlow 3.4s linear infinite; }
@keyframes kgv2MinedFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -24; }
}
/* Agent path animation must override the ambient flow (higher specificity) */
.kgv2-link.kgv2-link-active {
    animation: kgv2LinkPulse 0.6s linear infinite;
}
/* Hover state for mined links (plain-language sentence tooltip) */
.kgv2-link-hover {
    stroke-opacity: 0.95 !important;
    stroke-width: 2 !important;
}

