/* Enterprise Bootstrap Theme | MIT License | (c) 2026 Priya Vijai Kalyan */
.graphlegend{background-color:var(--theme-surface-bg);border:1px solid var(--theme-border-color);border-radius:0;box-shadow:var(--theme-shadow-sm);color:var(--theme-text-primary);display:flex;flex-direction:column;font-size:.8rem;max-width:320px;min-width:180px;overflow:hidden;z-index:10}.graphlegend-bottom-left{bottom:12px;left:12px;position:absolute}.graphlegend-bottom-right{bottom:12px;position:absolute;right:12px}.graphlegend-top-left{left:12px;position:absolute;top:12px}.graphlegend-top-right{position:absolute;right:12px;top:12px}.graphlegend-header{align-items:center;background-color:var(--theme-surface-raised-bg);border-bottom:1px solid var(--theme-border-subtle);cursor:default;display:flex;justify-content:space-between;padding:8px 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.graphlegend-title{color:var(--theme-text-primary);font-size:.8rem;font-weight:600;line-height:1.2}.graphlegend-toggle{align-items:center;background:transparent;border:none;border-radius:0;color:var(--theme-text-secondary);cursor:pointer;display:inline-flex;height:22px;justify-content:center;padding:0;transition:background-color .15s ease;width:22px}.graphlegend-toggle:hover{background-color:var(--theme-hover-bg)}.graphlegend-toggle:focus-visible{outline:2px solid var(--theme-primary);outline-offset:1px}.graphlegend-chevron{font-size:.75rem;line-height:1}.graphlegend-body{overflow-y:auto;padding:6px 0}.graphlegend-section{padding:0 10px}.graphlegend-section+.graphlegend-section{border-top:1px solid var(--theme-border-subtle);margin-top:6px;padding-top:6px}.graphlegend-section-label{color:var(--theme-text-muted);font-size:.625rem;font-weight:600;letter-spacing:.04em;padding-bottom:4px;text-transform:uppercase}.graphlegend-item{align-items:center;border-radius:0;cursor:default;display:flex;gap:6px;padding:4px;transition:background-color .12s ease}.graphlegend-item[role=button]{cursor:pointer}.graphlegend-item:hover{background-color:var(--theme-hover-bg)}.graphlegend-item:focus-visible{outline:2px solid var(--theme-primary);outline-offset:-1px}.graphlegend-edge-line{flex-shrink:0}.graphlegend-edge-label{color:var(--theme-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.graphlegend-fallback-badge{align-items:center;display:inline-flex;font-size:.75rem;gap:4px}.graphlegend-color-dot{border-radius:50%;display:inline-block;flex-shrink:0;height:10px;width:10px}.graphlegend-count{background-color:var(--theme-surface-raised-bg);border-radius:0;color:var(--theme-text-muted);font-size:.625rem;font-weight:600;line-height:1.6;margin-left:auto;min-width:18px;padding:0 6px;text-align:center}.graphlegend-status-planned{border:1px dashed var(--theme-border-color)}.graphlegend-status-deprecated{opacity:.5}.graphlegend-external-icon{color:var(--theme-text-muted);font-size:.625rem;margin-left:2px}@media (prefers-reduced-motion:reduce){.graphlegend-item,.graphlegend-toggle{transition:none}}